60bd974314
Load in victory states when appropriate ( #5 )
2020-09-12 14:50:35 -05:00
Alec
6dca957391
Merge branch 'master' of https://github.com/EECS-448-Battleship/project-1
2020-09-12 14:43:30 -05:00
Alec
1e47fdd142
for victory states to be shown
2020-09-12 14:43:21 -05:00
8e0c30f01a
Set opponent to loser if PlayerVictory in game service ( #5 )
2020-09-12 14:40:48 -05:00
fbe8ac8ce6
Fix math bugs for scoreboard ( #4 )
2020-09-12 14:39:38 -05:00
da3cd3efa5
Modify game state service to update view on missile attempt ( #5 )
2020-09-12 14:05:43 -05:00
6a08b5d3c8
Add player change prompt states and player display helpers to game service ( #3 )
2020-09-12 13:14:25 -05:00
531d11fee8
Fix committed merge errors; fetch placeable ships from service
2020-09-12 13:00:13 -05:00
Alec
c0a4bb93cd
the possible boats function
2020-09-11 17:02:25 -05:00
Alec
7f460b2324
Get possible boats to add #1}
2020-09-11 14:58:01 -05:00
b6118e686d
Add ability to refresh view to game service ( #3 )
2020-09-10 08:16:52 -05:00
8ee2a8252b
Modify helper methods for scoreboard on game state service ( #4 )
2020-09-09 20:02:15 -05:00
1ea296e710
Fix bug with game state service get_winner ( #3 )
...
Needed to properly fetch the cell state, not just coordinates
2020-09-09 11:50:57 -05:00
4075f282a2
Game state service bugfixes ( #3 )
...
- Add appropriate "else if" clauses to advance game state
- Add ability to listen for game state changes
- Don't have winner if no ships are present
- Reset "current_turn_had_missile_attempt" to false every state change
2020-09-09 11:32:44 -05:00
e9cbd8cf09
Add helper to get the current game state ( #3 )
2020-09-08 21:10:55 -05:00
bb8592cbb0
Add ability to listen for game state changes ( #3 )
2020-09-08 20:58:35 -05:00
Evan Powell
152f1fa776
added the logic for the gamestate if a player has won ( #2 )
2020-09-08 20:42:07 -05:00
Evan Powell
ce030c346e
added the logic for ensuring the player had fired a missle and the flow of the game in terms of the players' turns ( #2 )
2020-09-08 20:35:06 -05:00
fda50ad037
Merge branch 'master' of github.com:EECS-448-Battleship/project-1
2020-09-08 20:23:57 -05:00
d29b448484
Add helper methods for checking for victory ( #2 )
2020-09-08 20:23:49 -05:00
Evan Powell
960203b597
added the logic of handling player one's turn then switching to player two's turn ( #2 )
2020-09-08 20:16:43 -05:00
aaadd82d31
Add helper methods to game service for firing on opponent ( #2 )
2020-09-08 07:39:09 -05:00
9a2afe523e
add helper method to handle placing and validating a ship ( #2 )
2020-09-07 21:05:48 -05:00
Evan Powell
6d5050fa79
added to the advance game state: added the choosing boats number of boats prereq, started on the player's placement prereq( #2 )
2020-09-07 20:13:18 -05:00
Evan Powell
a9945e084e
added the n_boat variable, defined a get method for n_boat, and defined a set method for n_boat( #2 )
2020-09-07 19:56:09 -05:00
Evan Powell
97e797f6e3
added an outline for the future helpers of advance game state( #2 )
2020-09-07 19:41:21 -05:00
Evan Powell
eb5bcc6a54
added a get progress method( #2 )
2020-09-07 19:19:32 -05:00
Evan Powell
b6e756dae9
added a get boat count helper method( #2 )
2020-09-07 19:12:20 -05:00
Evan Powell
4463e804f4
added a get player score helper method( #2 )
2020-09-07 19:07:32 -05:00
610bfea7fb
Bugfix: move GameStateService declaration before instantiation ( #2 )
2020-09-07 15:29:16 -05:00
fcf8d2a1c3
Add basic state retrieval methods to the game service ( #2 )
2020-09-07 15:23:52 -05:00
ec6591d067
Add basic state to GameState service ( #2 )
2020-09-07 15:08:05 -05:00
69915705e1
Create game state service placeholder class
2020-09-07 14:34:43 -05:00