another update to swapState() in the various MafiaGameStates
just some code cleaning, removing unnecessary lines, unused code, and comments for things that have been replaced/removed; also occasional formatting
another State update, getting pretty slick IMO...;p
Made bot name a field
Removed some TODOs in IOThread
Created PostGame
two bug fixes:
no longer requires citizens to give a night action before night ends
no longer crashes when mafia targets a non-player
some small formatting changes, and fixed bug where bot said "the game is now over" four times instead of just once >_>
Changed isOver() in Game to tell what team won
changed Player to public, changed MafiaListener to tell the people still alive with ~stats
killing now works properly with multiple mafia members
stopped using that pesky "has night action" to check if night is over, moved to a more OOPish method IMO
removed old debugging print statements
fixed bug where dead mafia members had to agree on night kill
changed swapState method again to create a new Day and Night every time one was needed; this should obsolete the Game class's "night" and "day" fields
removed more old debug statements and the getDay and getNight methods from Game, as they were never used
Added config file support
Added copy line so that the jar file has same dir access to a settings file
took out some debug statements and refactored some things
game now includes a cop!