<commit_before># Meteor Battleship

A battleship game built with Meteor and React.

[VIEW THE DEMO](http://spacebattle.meteor.com)

* [What it is](#what-it-is)
* [How to use](#how-to-use)
  * [Requirements](#requirements)
  * [Run Locally](#run-locally)
* [Structure](#structure)
  * [Packages used](#packages-used)
  * [Folder structure](#folder-structure)
* [License](#license)

## What it is

A simple battleship game that uses an API

### The API endpoints

* Create a game
* Destroy a game
* Accepts coordinates for the player’s next move.
* Returns the coordinates for the CPU’s next move.

### The game works like this

* A battleship occupies one block.
* The starting board will be 5x5.
* The player starts a game and places 10 ships on the board.
* The player submits their positions on the board via the API.
* The CPU places its ships on the board.
* The player is given the first move and submits coordinates to strike.
* If a ship is hit, it is destroyed.
* Allow the CPU to attack.
* Alternate moves between player and CPU.
* The first player to have all ships destroyed is the loser.

### Roadmap

* ~~Add in user sessions so the server can handle more than one game at a time.~~
* Add a leaderboard that keeps winner’s initials and ranks them according to the time it took them to win.
* Deploy the application.

## How to use

### Requirements

Make sure [Meteor is installed and up to date](https://www.meteor.com/install) or run:

```
curl https://install.meteor.com/ | sh
```

### Run Locally

```
git clone <EMAIL>:amazingBastard/mtr-battleship.git<commit_msg>readme update<commit_after># Meteor Battleship

A battleship game built with Meteor and React.

[IN PRODUCTION](http://spacebattle.co)

* [What it is](#what-it-is)
* [How to use](#how-to-use)
  * [Requirements](#requirements)
  * [Run Locally](#run-locally)
* [Structure](#structure)
  * [Packages used](#packages-used)
  * [Folder structure](#folder-structure)
* [License](#license)

## What it is

A simple battleship game that uses an API

### The API endpoints

> A more thorough breakdown coming soon.

* Create a game
* Destroy a game
* Accepts coordinates for the player’s next move.
* Returns the coordinates for the CPU’s next move.

### The game works like this

* A battleship occupies one block.
* The starting board will be 5x5.
* The player starts a game and places 10 ships on the board.
* The player submits their positions on the board via the API.
* The CPU places its ships on the board.
* The player is given the first move and submits coordinates to strike.
* If a ship is hit, it is destroyed.
* Allow the CPU to attack.
* Alternate moves between player and CPU.
* The first player to have all ships destroyed is the loser.

### Roadmap

* ~~Add in user sessions so the server can handle more than one game at a time.~~
* Add a leaderboard that keeps winner’s initials and ranks them according to the time it took them to win.
* ~~Players can post comments (chat) during a game.~~
* ~~Deploy the application.~~

## How to use

### Requirements

Make sure [Meteor is installed and up to date](https://www.meteor.com/install) or run:

```
curl https://install.meteor.com/ | sh
```

### Run Locally

```
git clone <EMAIL>:amazingBastard/mtr-battleship.git
{'fraction_non_alphanumeric': 0.10288697788697788, 'fraction_numerical': 0.002457002457002457, 'mean_word_length': 4.01848998459168, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1475329', 'n_tokens_mistral': 1021, 'n_tokens_neox': 973, 'n_words': 443}