Crate battleship_bot
source ·Modules
- All the place functions
- All the shoot functions
Macros
- A macro to create a position from x and y
Structs
- Handles the games
- Saves an x and y for a position on a board
- Stores data about a game
Enums
- Stores the type of Boat that is on a cell
- Stores the data for a shot
Functions
- Places a boat in boats
- Check if pos is a valid position for a shot in shots
Type Aliases
- This is supposed to be returned by any
place
function. - This is supposed to be a parameter to any
shoot
function.