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..
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.**
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.
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.
TargetSDK: 33
Android Version: 8.0+
Size of the app: 5MB
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!**