conormoloney96 / tictactoeproject Goto Github PK
View Code? Open in Web Editor NEWA project containing 2 java classes which create a game of Tic Tac Toe.
A project containing 2 java classes which create a game of Tic Tac Toe.
This project was based on the tutorial found at: https://www.youtube.com/watch?v=ftJ66kZhdLk This project entailed the writing in java of 2 classes which would allow the user to play a game of TicTacToe with the TicTacToe2 class being run in the console to start the game. TicTacToe2 declares an object of type TicTactToeFrame2. This is the other class which is responsible for the creation of the JFrame object which in contains a JLabel component and a JPanel component which holds the 9 Cell objects in a GridLayout format of 3 rows and 3 cells. In the code on which the project was based a JLabel object JLblStatus was used to provide the user with relevant information to the game. I changed the display position of this JLabel from the South position (in the GridLayout layout of the JPanel object containing and organizing the cells) to the North position. This project contains a MouseListener function such that when one of the Cells of the frame are clicked with an event occurs which triggers the myMouseListener class which fills in the cell that has been clicked on, determines if the game is over and displays an appropriate message to the end user.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.