Crate battleship_bot
Source - place
- All the place functions
- shoot
- All the shoot functions
- pos
- A macro to create a position from x and y
- Battleship
- Handles the games
- Pos
- Saves an x and y for a position on a board
- Recording
- Stores data about a game
- Boat
- Stores the type of Boat that is on a cell
- Player
- Shot
- Stores the data for a shot
- place_boat
- Places a boat in boats
- valid_shot
- Check if pos is a valid position for a shot in shots
- BoatMap
- This is supposed to be returned by any
place
function. - ShotMap
- This is supposed to be a parameter to any
shoot
function.