Overview
Fruits Wars Complete Board Game Template is a complete board game template, ready to be published. Outsmart, outwit and expand your control of the board. Play in a fast-pacing turn-based strategy board game, against a friend or against the AI.
Features
- Multiple board sizes
- Play against another player, or against an AI
- Multiple difficulties AI implementation
- Google Play integration for Achievements
- Cute graphics and animations
Note: You need to install the following packages in order to view/test the package: GooglePlayGames package.
Purchase the Fruits Wars Complete Board Game Template from the Unity Assets Store here >>
Screenshots
Documentation
User Interface
- AdsController.cs – Utility class to display Google AdMobs Ads
- ButtonSound.cs – Utility class to play a sound when a button is pressed.
- Map.cs – Responsible for displaying the game board
- MenuManager.cs – Manager for the main menu
- NavigationManager.cs – Utility class to navigate between scenes
- QuitOnBack.cs – Utility class to respond to the device’s back button
- SoundsManager.cs – Utility class to play sounds
Game State Management
- Cell.cs – represents a single cell in the game board
- CellExtension.cs – Extension methods for Cell
- GameManager.cs – Main game manager, that controls the players’ selection, the flow of the game, invoke the AI, and checks the winning player.
- GameMode.cs – Utility class used to retrieve objects based on the player’s selection
Artificial Intelligence
- ABPruning.cs – Implementation of the A/B pruning algorithm (see Alpha-beta pruning for details). The implementation allows selecting how many steps ahead the AI should check. It also allows “dumbing” down the AI by forcing it to select a random move between the best moves.
- Board.cs – Represent the game board in a more memory efficient way (using array of bytes)
- Move.cs – Represent a possible game move
Google Play integration
- GPGSIds.cs – Id of the Google Play achievements
- Social.cs – Utility class to handle Google Play signin and UI
- SocialManager.cs – Utility class to manage Google Play high scores and achievements
Utilities
- Pool.cs – object pooling implementation in order to reduce memory usage (used by the AI)
- RateApp.cs – Utility class to open the game’s page in the Google Play Store
- ShareApp.cs – Utility class to share link of the game’s Google Play Store.