
Untitled
By: a guest on
Jun 14th, 2012 | syntax:
None | size: 1.31 KB | hits: 16 | expires: Never
Project Part 3 (and 4)
1) 2 or 4 players
- Each player must track current position of each player and where the walls are
- last_move() -> what happened (i.e., how did the board change) after the last player moved
2) PlayerMove class -> no change
(playerId, move, start, end)
0,1,2,3^ T/F^ ^coordinates^
3) player module -> 3 functions
i) init() -> unchanged
(gameFile, playerId, numPlayers, playerHomes, wallsRemaining)
Board^ 0,1,2,3^ 2 or 4^ playerHomes[playerId]^ wallsRemaining[0]->2 player mode
wallsRemaining[1]->4 player mode
ii) move() -> unchanged, random
iii) last_move(playerData, playerMove) returns playerData
board^ ^state after another player moved (do not need to verify other players)
4) Supplied player modules -> .pyc files
- 4 copies of each
- player_human
- player_badcomputer -> random, must beat in 2-player mode for part 4
- player_goodcomputer -> better than random
- You may use multiple copies of your own player module if you would like
- Make a complete copy of your source code & give it a unique name
- e.g., player_p242-07c.py
5) Submit by 2:00 am Feb 1st.
- player module in 2 or 4 player mode
- quoridor3.txt
- names
- modifications from part 2
- pseudocode for last_move