Inspiration

The basic idea of the TIC-TAC-TOE game is completely based on the jack-based application and to build the game using the jack language.

What it does

Tic-Tac-Toe is a two-player game where the player picks one from Noughts (0) and Crosses (X). It requires the players to make a 3-grid linear chain with their marks in a 3x3 grid. When a player achieves to make the 3-grid linear chain (Either vertically, horizontally, or diagonally) is declared as the winner. Here, the player will play the game of ‘Tic-Tac-Toe’ against the computer. After hitting ‘Enter’, the player will be given two options. They can either make their move by hitting ‘0’ or let the computer make its move by hitting ‘1’). The Player can place their mark by hitting the respective to the grid. (For example: to mark the first grid, hit 1. Once the player is done making their move, the computer will make its move. This process will continue until either of them successfully achieves to make the 3-grid linear chain. The player will be greeted by the ‘Game Lost’ or ‘Game Won’ messages depending on the game’s result. The player can start the game again by hitting ‘Enter’.

How we built it

The respective Jack Files are converted into VM Files using Jack Compiler and the VM files are processed using VM Emulator which inturn results in the application.

Challenges we ran into

• While developing the Jack application, it was difficult to work with the inbuilt OS APIs. • This was a challenging task that we have gone through calling the right method and function at the right place. • Finding out the right places to move the reference position to draw the pieces correctly in the respective cells.

Accomplishments that we're proud of

Jack Application is the product of equal contributions from all group members. We have exhaustively worked for the smooth running of the application.

What's next for TicTacToe Game using Jack Language

Next we a re working on converting this project into a graphical represntation using CSS.

Built With

  • jacklanguage
  • nand2tetris
  • os-api's
Share this project:

Updates