Skip to content

Commit

Permalink
release-0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cqb13 committed Jan 27, 2024
1 parent 7b9f854 commit f55912c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ pub fn process_attack(defender_board: GameBoard, attack_position: Position) -> A
Tile::Unknown => AttackFeedback::new(tile_at_attack_position, true, false, false, false),
Tile::Ship(_) => {
let attack_sunk_a_ship = defender_board.check_if_hit_is_a_sink(tile_at_attack_position);
let attack_won_the_game = defender_board.check_if_hit_won_the_game(tile_at_attack_position);
let attack_won_the_game =
defender_board.check_if_hit_won_the_game(tile_at_attack_position);

let hit_a_ship = match tile_at_attack_position {
Tile::Ship(_) => true,
Expand Down

0 comments on commit f55912c

Please sign in to comment.