Skip to content

Commit

Permalink
Merge pull request florinpop17#24 from florinpop17/feature/add-battle…
Browse files Browse the repository at this point in the history
…ship-bot

Feature/add battleship bot
  • Loading branch information
florinpop17 authored Mar 27, 2019
2 parents 7632964 + 074315e commit b609171
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Projects/Battleship-Bot.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Battleship Bot

**Tier:** 3-Advanced

Battleship Bot is takes the [Battleship Game Engine](./Battleship-Game-Engine.md)
to the next level. This challenge uses your Battleship Game Engine to create a
presentation layer using Discord's bot API to allow you to play the game
via a Discord chat.

## User Stories

- [ ] User can display game rules by entering `bb help` into the chat window.
- [ ] User can start a game by entering `bb start` into the chat
- [ ] User can target a cell by enteering `bb shoot r,c` into the chat window, where `r` and `c` are the row and column coordinates of the cell to be targeted.
- [ ] User can see the game board showing hits and misses displayed by the bot after each shot is taken
- [ ] User can see an congratulations message after the shot that sinks the last remaining ship.

## Bonus features

- [ ] User can surrender a game by entering `bb surrender` in the chat window.
- [ ] User can see a card containing a graphical representation of the hits and misses rather than a simple 2D table of characters.

## Useful links and resources

- [Battleship Game Engine](./Battleship-Game-Engine.md)
- [How to Create a Discord Bot Under 15 Minutes](https://medium.freecodecamp.org/how-to-create-a-discord-bot-under-15-minutes-fb2fd0083844)
- [Using Embeds in Messages](https://anidiots.guide/first-bot/using-embeds-in-messages)
- [Discord Developer Portal](https://discordapp.com/developers/docs/intro)

## Example projects

- [Gamebot(Battleship)](https://repl.it/talk/challenge/GameBot-Battleship/8813)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ required to complete them.

| Name | Description | Tier |
| -------------------------------------------------------------- | ---------------------------------------------------- | ---------- |
| [Battleship Bot](./Projects/Battleship-Bot.md) | Create a Discord bot that plays Battleship | 3-Advanced |
| [Battleship Game Engine](./Projects/Battleship-Game-Engine.md) | Create a callable engine to play the Battleship game | 3-Advanced |
| [Chat App](./Projects/Chat-App.md) | Real-time chat interface | 3-Advanced |
| [GitHub Timeline](./Projects/GitHub-Timeline-App.md) | Generate a timeline of a users GitHub Repos | 3-Advanced |
Expand Down

0 comments on commit b609171

Please sign in to comment.