diff --git a/.babelrc b/.babelrc
new file mode 100644
index 0000000..002b4aa
--- /dev/null
+++ b/.babelrc
@@ -0,0 +1,3 @@
+{
+ "presets": ["env"]
+}
diff --git a/README.md b/README.md
index 09a972f..2a8bf9e 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,8 @@
A collection of games to play in a web browser. See the full list of games in the [games.md](games.md) file.
+#### By: Aisha Ortiz
+
## Installation and Setup
Clone the repo, install npm dependencies, and start the server:
@@ -22,3 +24,52 @@ Available on:
```
Then open `http://localhost:4321/` in your browser of choice and play away!
+
+## Description
+
+Build simple graphical games for the browser.
+
+Fork the the browser-games repository and use the fork as your project artifact.
+
+Implement the games Tic-Tac-Toe and Simon from the list in the games.md file. As a stretch, implement the Connect Four game.
+
+You will be using FreeCodeCamp challenges as guides and tutorials for building these games.
+
+## Context
+
+This goal will challenge your ability to take a formal, defined system from the real world and replicate it in code. You will start with all of the logic of the system (the rules of the game) and most of the UI already designed.
+
+Your work will be mainly in deciding how to replicate that formal logic and user interface using JavaScript, HTML, and CSS.
+
+## Specifications
+
+### General
+
+ - [X] Artifact produced is a fork of the browser-games repo.
+ - [X] Variables, functions, files, etc. have appropriate and meaningful names.
+ - [X] HTML, CSS, and JS files are well formatted with proper spacing and indentation.
+ - [X] All major features are added via pull requests with a clear description and concise commit messages.
+ - [X] Every pull request has been reviewed by at least one other person.
+ - [X] The artifact produced is properly licensed, preferably with the MIT license.
+
+### Tic-Tac-Toe
+
+ - [X] Tic-Tac-Toe game can be found at public/ticTacToe.html
+ - [X] Tic-Tac-Toe game is playable by two people
+ - [X] Tic-Tac-Toe game page is linked from public/index.html
+
+### Simon
+
+ - [X] Simon game can be found at public/simon.html
+ - [ ] Simon game is playable
+ - [X] Simon game page is linked from public/index.html
+
+### Stretch
+
+ - [ ] Tic-Tac-Toe has a player-vs-computer version
+ - [ ] Tic-Tac-Toe AI will always win or tie
+ - [ ] Simon plays sounds
+ - [ ] Implement Connect Four game
+ - [ ] Connect Four game can be found at public/connectFour.html
+ - [ ] Connect Four game is playable by two people (human v human)
+ - [ ] Connect Four game page is linked from public/index.html
diff --git a/dist/js/ticTacToe.js b/dist/js/ticTacToe.js
new file mode 100644
index 0000000..8b5b85b
--- /dev/null
+++ b/dist/js/ticTacToe.js
@@ -0,0 +1,18 @@
+"use strict";
+
+var startGame = function startGame() {
+ document.turn = "X";
+};
+
+var nextMove = function nextMove(Square) {
+ square.innerText = document.turn;
+ switchTurn();
+};
+
+var switchTurn = function switchTurn() {
+ if (document.turn == "X") {
+ document.turn = "0";
+ } else {
+ document.turn = "X";
+ }
+};
\ No newline at end of file
diff --git a/dist/ticTacToe.js b/dist/ticTacToe.js
new file mode 100644
index 0000000..8b5b85b
--- /dev/null
+++ b/dist/ticTacToe.js
@@ -0,0 +1,18 @@
+"use strict";
+
+var startGame = function startGame() {
+ document.turn = "X";
+};
+
+var nextMove = function nextMove(Square) {
+ square.innerText = document.turn;
+ switchTurn();
+};
+
+var switchTurn = function switchTurn() {
+ if (document.turn == "X") {
+ document.turn = "0";
+ } else {
+ document.turn = "X";
+ }
+};
\ No newline at end of file
diff --git a/package.json b/package.json
index be78d2e..42c0b80 100644
--- a/package.json
+++ b/package.json
@@ -3,7 +3,9 @@
"version": "0.0.0",
"description": "A collection of games to play in a web browser.",
"scripts": {
- "start": "http-server ./public -p 4321"
+ "build": "babel --copy-files src --out-dir dist",
+ "build:watch": "npm run build -- --watch",
+ "start": "http-server ./public -p 4321"
},
"repository": {
"type": "git",
@@ -20,6 +22,10 @@
},
"homepage": "https://github.com/GuildCrafts/browser-games#readme",
"dependencies": {
+ "babel-cli": "^6.24.1",
+ "babel-core": "^6.24.1",
+ "babel-env": "^2.4.1",
+ "babel-preset-es2015": "^6.24.1",
"http-server": "^0.9.0"
}
}
diff --git a/public/css/.gitkeep b/public/css/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/public/img/.gitkeep b/public/img/.gitkeep
deleted file mode 100644
index e69de29..0000000
diff --git a/public/index.html b/public/index.html
index 278d291..9300a3c 100644
--- a/public/index.html
+++ b/public/index.html
@@ -13,8 +13,8 @@