javier-barea
70df967246
Add definition for ship options #1
4 years ago
Alec
637dd4892b
edited ship buttons and the board #3
4 years ago
Alec
50c3db868f
edited ship buttons and board #3
4 years ago
javier-barea
19aa3733d0
Add definition for ship options #1
4 years ago
javier-barea
5a6367079a
Define user instructions #3
4 years ago
Alec
c58b4b19a6
Add buttons for # of ships #1
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
eaef36ad61
Add top-level component to show/hide the boards for the current player ( #3 )
4 years ago
Garrett Mills
b5a903d599
Modify game board component to accept passed-in rows ( #3 )
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
7c364c5c01
Revise styles for game board column labels ( #1 )
...
- Just a few tweaks here. The general principle is good.
- If you want <div> elements to display horizontally, they need to
be wrapped in a parent <div> which has "display: flex;" in the css.
- Then, add a width and centering to the individual labels.
4 years ago
javier-barea
bd44b25faa
Merge branch 'master' of https://github.com/EECS-448-Battleship/project-1
4 years ago
javier-barea
2fe5accb32
Commented letter labels to grid #1
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
fc84c4f415
Merge branch 'issue-2'
4 years ago
Garrett Mills
aaadd82d31
Add helper methods to game service for firing on opponent ( #2 )
4 years ago
Garrett Mills
a4f13f0d17
Add util method for checking if cell can be fired upon ( #2 )
4 years ago
Garrett Mills
99759bad09
Add custom error class for invalid missile fire ( #2 )
4 years ago
javier-barea
01360e548e
Deleted comments
4 years ago
javier-barea
463a8f6d30
Add label to rows ( #2 )
4 years ago
Garrett Mills
9a2afe523e
add helper method to handle placing and validating a ship ( #2 )
4 years ago
Garrett Mills
a803c6937d
Add custom error classes for state and placement ( #2 )
4 years ago
Garrett Mills
1a6d916f85
Add ShipType enum and isShipCell helper to utils ( #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
javier-barea
f333261e20
Add colors to states
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
ed5eaf0d55
Modify game board to fetch state from game service ( #1 )
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
be75c6ba53
Add helper method "clone" to deep-copy values ( #2 )
4 years ago
Garrett Mills
ec6591d067
Add basic state to GameState service ( #2 )
4 years ago
Garrett Mills
9ccbbe1790
Add in enum values for player, game state, grid cell state ( #2 )
4 years ago
Garrett Mills
69915705e1
Create game state service placeholder class
4 years ago
Garrett Mills
00cff8f773
Fix number of rows and columns
4 years ago
Garrett Mills
fb0efa14b9
Add basic grid layout and grid cell component; start styles
4 years ago
Garrett Mills
3425b1d988
Add basic libraries and file structure
4 years ago