Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tic-Tac-Toe Submission #8

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0265f6b
Adding job description
cmheisel Mar 30, 2011
354500e
Clarify the instructions a little bit.
datagrok Apr 1, 2011
7a6933b
Change "another player" to "a human player."
datagrok Apr 1, 2011
f40c5d2
Added instructions for folks who want to submit anonymously
cmheisel Jun 15, 2011
9a8088b
Improved the README. I good not English at.
cmheisel Jun 21, 2011
3d5bd25
Added ethos, prettier RST formating
cmheisel Feb 22, 2012
5e50d75
Added dev manager job description.
cmheisel Apr 6, 2012
18a78b3
Cleaned up language
cmheisel Jul 1, 2013
9c3cf9a
Update README
BenTMatthews Mar 27, 2014
c46af40
Update README
BenTMatthews Mar 27, 2014
6cb5e7b
Merge pull request #191 from bmatthews99/patch-1
cmheisel Apr 8, 2014
8c114bb
Move to RST
cmheisel Apr 8, 2014
ff3235f
Clearer instructions, moved to RST
cmheisel Apr 8, 2014
6278aa9
Make clear the goal of the story
cmheisel Apr 8, 2014
89b2f3d
Tighten writing
cmheisel Apr 8, 2014
f81db67
Make clear intentions
cmheisel Apr 8, 2014
5dfae22
Tighten writing
cmheisel Apr 8, 2014
cfb377e
Tell us how to run it
cmheisel Apr 8, 2014
d1455c9
Tighten directions, make clear .git need
cmheisel Apr 8, 2014
e065a83
Merge branch 't204' Fixes #204
cmheisel Apr 8, 2014
e3c1ddf
Fix typo
cmheisel Apr 8, 2014
3cdaf86
Delete python-developer.rst
jepeters2 Dec 7, 2015
1154011
Update README.rst
jepeters2 Dec 7, 2015
cb96628
Update README.rst
jepeters2 Dec 9, 2015
cc3fa90
Add index.html with basic gameboard, buttons, and images, along with …
aaroniousblanco Jun 5, 2017
e915e79
Add jQuery file and main js file. Includes options for human v. human…
aaroniousblanco Jun 5, 2017
99de416
Add comments to tictactoe.js file.
aaroniousblanco Jun 5, 2017
a74eec4
Add comments to tictactoe.js file.
aaroniousblanco Jun 5, 2017
92b904c
Fix issue with js file link in index.html file.
aaroniousblanco Jun 5, 2017
8949999
Add additional cpu move logic for defending against an initial corner…
aaroniousblanco Jun 5, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions README

This file was deleted.

28 changes: 28 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Story
======

As a CMG manager, I want to see how you code a game of Tic Tac Toe, so that I can get a feel for a candidate's skills and strengths.

Acceptance criteria
=======================
* Application is a stand alone, static web page game of tic tac toe.
* Computer (AI) will never lose a game.
* Application should be able to run based on HTML, CSS and Javascript.
* Game will let player choose to be either X or O, computer will take other choice.
* Game will let player go first.

Submission Tips
========================
* Quality counts! A good submission that takes a while is better than a poor submission quickly.
* Make sure your submission accurately reflects your development style.
* Commit early and often, with good messages.
* Comments and Unit tests are appreciated but not required, if you know good practice, then show us.
* Research the AI, there are multiple well known algorithms available, show us your implementation.
* Plagarism will not be tolerated.


Submissions
---------------
* Fork this repo and send us a pull request.
* if you prefer you can send us a ZIP of your submission, due to email filters, rename the file to *.txt and mention it is a ZIP in your email.

73 changes: 73 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Tic-Tac-Toe</title>
<script src="jquery.js"></script>
<script src="tictactoe.js"></script>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<div class="row">
<div id="header" class="col-lg-12">
<img class="img" src="https://d30y9cdsu7xlg0.cloudfront.net/png/18917-200.png" alt="tick">
<img class="img" src="https://d30y9cdsu7xlg0.cloudfront.net/png/180449-200.png" alt="tack">
<img class="img" src="http://www.uidownload.com/files/788/784/960/boat-marine-saling-sea-tugboat-vehicles-icon.png" alt="tow">
</div>
</div>
<div class="row">
<div class="col-xs-2">
<button id="restartGame" type="button" class="btn btn-primary btn-lg">New Game</button>
<button id="options" type="button" class="btn btn-primary btn-lg">Options</button>
<div class="radio option-buttons">
<label class="option-buttons"><input id="2player" type="radio" name="optradio" checked="checked">2 Player</label>
</div>
<div class="radio option-buttons">
<label class="option-buttons"><input value="CPU" type="radio" name="optradio">Human v. Machine</label>
</div>
</div>
<div id="gameboard" class="col-xs-7">
<div id="0" class="square"></div>
<div id="1" class="square"></div>
<div id="2" class="square"></div>
<div id="3" class="square clear"></div>
<div id="4" class="square"></div>
<div id="5" class="square"></div>
<div id="6" class="square clear"></div>
<div id="7" class="square"></div>
<div id="8" class="square"></div>
<img id="face" src="http://www.iconsdb.com/icons/preview/black/emoticon-12-xxl.png" alt="">
</div>
<div>
<div class="col-xs-3">
<div>
<p id="winnerdeclaration"></p>
</div>
<table class="table">
<thead>
<tr>
<th>Player</th>
<th>Wins</th>
</tr>
</thead>
<tbody>
<tr>
<td>Player 1</td>
<td id="winsPlayer1">0</td>
</tr>
<tr>
<td>Player 2</td>
<td id="winsPlayer2">0</td>
</tr>
</tbody>
</table>
<button id="clearScoreboard" type="button" class="btn btn-primary btn-lg">Clear Scoreboard</button>
</div>
</div>
</div>
</div>
</body>
</html>
Loading