Skip to content
This repository was archived by the owner on Dec 29, 2023. It is now read-only.

Giuseppe-code/MegaTris

Repository files navigation

Overview -28/11/2022

Better than Tic Tac Toe

Megatris is an Android game created and implemented by @GiuseppeVinci04 and me in the last year of high school as our personal project.
This game is playable with a friend or with a not-so-intelligent bot.
The game was realized in Java on Android Studio for Android phone, is currently available in the Play Store and is monetize with AdMob.
We developed the idea, logo, and all activities, images (all in .svg), and classes..

Disclaimer

This project could be improved. My friend and I had limited knowledge at the time and many things could be changed, such as the name of the activity, the class management, the choose of the language, the OOP, the value static, the comment wrote in Italian, the absence of github...

**However, we want to publish this project as a point of reference and a warning for future projects.**

Tutorial of the game

The game uses 9 little tris (TrisSecondary in the project) to create a large big Tris (TrisPrimary in the project). Each cell of the little tris is equivalent to a cell of the big tris. If your opponent plays in the cell of the little Tris, you must play in the corresponding tris of the Megatris. Whoever gets three in a row in the big tris wins.

Tutorial of the Project

TrisPrimary is the large tris while TrisSecondary is the little, TrisPrimary is an object used by the class TrisSecondary for all types of functions, such as the player's turn, victory or defeat of the player, taking of the little tris, and the management of the sequence.

Sequence, the player must play in an order chosen by the previous move. So, we created an ArrayList that memorizes the number of the tris and the number of the cells where the player played.
Admob, we insert the public unit test
TrisSecondaryBot, this extends TrisSecondary and creates a random list of moves. With a few controls, it decides the better move to play.
ActivityHelp, these are activities that, with images and text, help the player understand the game.

Versions and Total Size

TargetSDK: 33
Android Version: 8.0+
Size of the app: 5MB

Conclusion

If you wish, you can improve this project for personal use! **However, we highly discourage you, it wasn't made for be shared.** **That's all! Good Game!**

About

Megatris an Android game realized with Java on Android Studio

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages