Giter Club home page Giter Club logo

tictactoe's Introduction

Tic Tac Toe

A secured web app to play Tic Tac Toe against a dummy computer opponent.

Features & Notes

  • Play a game on a 3x3 board with an option to go first or after the computer opponent.
  • Computer opponent's AI chooses random squares, except when going first in which case the center tile is always picked.
  • User game data is persisted to an in-memory database. As long as the server is not restarted, a player can leave and return to finish an in-progress game.
  • App is secured with a username & password login. Database is seeded with two usernames rick and morty. Both have the same password pickle.
  • UI renders each time through a full page refresh in the name of simplicity.
  • For more info about the project and lessons learned, see: Little Code Gems.
  • Unit tests: src/test/java/tictactoe/*

Tech Stack

Technology
Language Java 11
Framework Spring Boot (v2.5)
Data Layer H2 Database, JPA & Hibernate
UI Layer HTML, CSS, Javascript, jQuery (v3.6), Bootstrap (v5), Thymeleaf
Testing JUnit 5, Mockito, AssertJ
Build Tool Gradle (v7.2)

Install & Run

  • Install Java 11.
  • Clone repo: git clone https://github.com/randomvlad/TicTacToe.git
  • Navigate cd TicTacToe and run applicable Gradle Wrapper command:
    • macOS/Unix: ./gradlew bootRun
    • Windows: gradlew.bat bootRun
  • Once app is running, go to http://localhost:8080/tictactoe/.
  • Log in with username rick or morty and password pickle to play a game.
  • To end app, kill process in terminal with CTRL + C.

Game Screenshots



tictactoe's People

Contributors

randomvlad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.