mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-28 12:55:36 -04:00
Battleship (#16)
* project: testing * feat: updated testing configs * feat: ship class and test * feat: more testing * feat: gameboard logic/tests complete * feat: add player methods * feat: add main app * sync: pushing latest code to repo * feat: add some basic styling and stuff * feat: added UI logic * feat: basic game is finished * feat: add adjacent rules * feat: basic game complete
This commit is contained in:
parent
d899a773bd
commit
099e6b13e7
23 changed files with 10431 additions and 9218 deletions
9
battleship/src/index.js
Normal file
9
battleship/src/index.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { Player } from './components/player';
|
||||
import Game from './app';
|
||||
import Website from './website';
|
||||
import './style.css';
|
||||
|
||||
const player1 = new Player('Player1');
|
||||
const player2 = new Player('CPU');
|
||||
const game = new Game({ player1: player1, player2: player2 });
|
||||
new Website(game);
|
Loading…
Add table
Add a link
Reference in a new issue