GithubHelp home page GithubHelp logo

tictactoe-orderchaos-triantaena's Introduction

Cards and Boards game infrustructure


An OOP design in Java

Files


src/com/TriantaEna/main.java: Main entrance of this application

src/com/TriantaEna/Game.java: game selector and game starter

src/com/TriantaEna/utils/GameState.java: GameState interface which provides common states such as run, init, start, isover

src/com/TriantaEna/utils/Player.java: Parent player interface which defines the behavior of a general player

src/com/TriantaEna/utils/cardGame/Card.java: An actual card object used in TriantaEna

src/com/TriantaEna/utils/cardGame/Deck.java: A deck object which represent the real deck with 52 cards

src/com/TriantaEna/utils/cardGame/cardPlayer.java: A card player object which implements Player interface

src/com/TriantaEna/utils/cardGame/Hand.java: A hand object representing the hand of card currently owned by the card player

src/com/TriantaEna/TriantaEna/triantaEnaChecker.java: A checker class which defines conditions to win or lose in a TriantaEna game

src/com/TriantaEna/TriantaEna/triantaEnaInstructions.java: A class containing instructions used in the TriantaEna game

src/com/TriantaEna/TriantaEna/triantaEnaPlayer.java: A TriantaEna game Player implementing the general player interface

src/com/TriantaEna/TriantaEna/triantaEnaRunner.java: A TriantaEna game instance which contains the main workflows of a TriantaEna game

src/com/TriantaEna/utils/boardGame/Board.java: Board class used by TicTacToe and OrderAndChaos (CW1)

src/com/TriantaEna/utils/boardGame/Cell.java: Cell class used by the two board games in CW1, a single cell on a board (CW1)

src/com/TriantaEna/utils/boardGame/boardPlayer.java: board game Player abstract class which defines the basic behavior of a board game player (CW1)

src/com/TriantaEna/tictactoe/TicTacToeBoardPlayer.java: TicTacToe player inherited from the Player class, which contains the behaviors and methods of a TicTacToe Player

src/com/TriantaEna/tictactoe/TicTacToeBoardRunner.java: An actual running instance of TicTacToe game which implements interface GameState, which contains customized methods and behaviors

src/com/TriantaEna/orderAndChaos/orderAndChaosRunner.java: Order And Chaos player inherited from the Player class, which contains the behaviors and methods of an Order And Chaos Player

src/com/TriantaEna/orderAndChaos/orderAndChaosBoardPlayer.java: An actual running instance of Order And Chaos game which implements interface GameState, which contains customized methods and behaviors

How to compile and run

  1. Navigate to the directory "/TriantaEna" after unzipping the files
  2. Run the following instructions:

javac -d bin src/com/TriantaEna/.java src/com/TriantaEna/utils/boardGame/.java src/com/TriantaEna/utils/cardGame/.java src/com/TriantaEna/utils/.java src/com/TriantaEna/TriantaEna/.java src/com/TriantaEna/orderAndChaos/.java src/com/TriantaEna/tictactoe/*.java java -cp bin com.TriantaEna.main

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.