Python Forum
Dynamically chosing number of players in a "game"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dynamically chosing number of players in a "game"
#6
That is how you would get player 1, but your program should not care about player 1, or player 2. The program should be written treat players generically, and the only important player is the current player. If your code contains hard coded index numbers you are doing something wrong. Indices should always be varibles.
Reply


Messages In This Thread
RE: Dynamically chosing number of players in a "game" - by deanhystad - Jul-17-2020, 02:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Program: Assign roles to players depending on priorities raquel86 0 1,155 May-16-2022, 11:10 AM
Last Post: raquel86
  Help - random number/letter guessing game juin22 1 3,239 Aug-16-2020, 06:36 AM
Last Post: DPaul
  Can someone help me optimize this game for large number of strings Emekadavid 13 5,100 Jul-06-2020, 06:16 PM
Last Post: deanhystad
  making a guessing number game blacklight 1 2,226 Jul-02-2020, 12:21 AM
Last Post: GOTO10
  Guess the number game jackthechampion 5 3,242 Mar-07-2020, 02:58 AM
Last Post: AKNL
  Asking for help in my code for a "Guess the number" game. Domz 5 3,892 Aug-14-2019, 12:35 PM
Last Post: perfringo
  Guess a number game Drone4four 4 5,327 Nov-16-2018, 03:56 AM
Last Post: Drone4four
  trying to get my random number guessing game to work! NEED HELP RaZrInSaNiTy 4 6,951 Oct-06-2016, 12:49 AM
Last Post: tinabina22

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020