Skip to content

Alastifer/Xs-and-Os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xs-and-Os

Tic-tac-toe (also known as noughts and crosses or Xs and Os) is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. More information in [Wikipedia] (https://en.wikipedia.org/wiki/Tic-tac-toe). Xs and Os field

Installation

After release 1.0.0

Archive JAR

Coming soon

Archive ZIP

Coming soon

From repository

  1. Download or clone repository
  2. Open terminal, go to the folder: Xs-and-Os-master/src/project/xo/
  3. Compiling file XO.java: javac XO.java
  4. Then, start program with comand: java XO

Usage

New game

  1. After starting the game you will be given the right to choose the size of the playing field NxN. Field size (N) should not be less than 3, but must not be more than 10.
  2. Then, you will be prompted to enter the names of the players.

Gameplay

You will be prompted to enter the coordinates for your figure (X and Y).

X - column number

Y - line number

Winner

At field NxN, the player who succeeds in placing N of their figures in a horizontal, vertical, or diagonal row wins the game.

Credits

Created by:

License

MIT License

Copyright (c) 2016 Alexandr

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Paper-and-pencil game for two players, X and O

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages