Skip to content

CristianLopez3/tic-tac-toe-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

TIC TAC TOE WITH JAVA

Hi there, this is a tic-tac-toe game made in shell with java, the idea of the project is:

  • Implement Object-Oriented Programming

  • Implement SOLID Principles

  • Understand a little bit more about Exceptions

  • Dockerize the project

Execute the project with docker: πŸ‹

docker build -t tictactoe .
docker run -it --rm tictactoe

Package and file organization:

    com.game.tictactoe
    β”œβ”€β”€ exception
    β”‚   └── InvalidMoveException.java
    β”œβ”€β”€ model
    β”‚   β”œβ”€β”€ Player.java
    β”‚   β”œβ”€β”€ HumanPlayer.java
    β”‚   β”œβ”€β”€ ComputerPlayer.java
    β”‚   └── Board.java
    β”œβ”€β”€ interface
    β”‚   β”œβ”€β”€ Playable.java
    β”‚   └── Displayable.java
    β”œβ”€β”€ util
    β”‚   └── Constants.java
    └── Game.java
    |-- Main.java

Important

If you have any aspect that could be improved please do create and issue

About

tic tac toe in a shell with java

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published