Garrett Mills
531d11fee8
Fix committed merge errors; fetch placeable ships from service
4 years ago
Alec
c0a4bb93cd
the possible boats function
4 years ago
Alec
7f460b2324
Get possible boats to add #1}
4 years ago
Garrett Mills
b6118e686d
Add ability to refresh view to game service ( #3 )
4 years ago
Garrett Mills
8ee2a8252b
Modify helper methods for scoreboard on game state service ( #4 )
4 years ago
Garrett Mills
1ea296e710
Fix bug with game state service get_winner ( #3 )
...
Needed to properly fetch the cell state, not just coordinates
4 years ago
Garrett Mills
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
4 years ago
Garrett Mills
e9cbd8cf09
Add helper to get the current game state ( #3 )
4 years ago
Garrett Mills
bb8592cbb0
Add ability to listen for game state changes ( #3 )
4 years ago
Evan Powell
152f1fa776
added the logic for the gamestate if a player has won ( #2 )
4 years ago
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 )
4 years ago
Garrett Mills
fda50ad037
Merge branch 'master' of github.com:EECS-448-Battleship/project-1
4 years ago
Garrett Mills
d29b448484
Add helper methods for checking for victory ( #2 )
4 years ago
Evan Powell
960203b597
added the logic of handling player one's turn then switching to player two's turn ( #2 )
4 years ago
Garrett Mills
aaadd82d31
Add helper methods to game service for firing on opponent ( #2 )
4 years ago
Garrett Mills
9a2afe523e
add helper method to handle placing and validating a ship ( #2 )
4 years ago
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 )
4 years ago
Evan Powell
a9945e084e
added the n_boat variable, defined a get method for n_boat, and defined a set method for n_boat( #2 )
4 years ago
Evan Powell
97e797f6e3
added an outline for the future helpers of advance game state( #2 )
4 years ago
Evan Powell
eb5bcc6a54
added a get progress method( #2 )
4 years ago
Evan Powell
b6e756dae9
added a get boat count helper method( #2 )
4 years ago
Evan Powell
4463e804f4
added a get player score helper method( #2 )
4 years ago
Garrett Mills
610bfea7fb
Bugfix: move GameStateService declaration before instantiation ( #2 )
4 years ago
Garrett Mills
fcf8d2a1c3
Add basic state retrieval methods to the game service ( #2 )
4 years ago
Garrett Mills
ec6591d067
Add basic state to GameState service ( #2 )
4 years ago
Garrett Mills
69915705e1
Create game state service placeholder class
4 years ago