🧩 BaghChaal
An extension for MIT App Inventor 2.BaghChal is a disproportionate strategy game, which means that the Goats and Tigers on the board do not have the same powers during the game. The Tigers have the ability to capture goats and eliminate them from the board whereas the Goats have the power of superior numbers for trap tigers. **Burst Animations** on eliminate with hint color on valid moves. Developed by TechHamara using Fast.
Telegram | GitHub
BuyMeaCoffee | YouTube
Find More Extension
Terms & Conditions
Specifications
Package: io.th.baghchaal
Size: 33.01 KB
Version: 1.0
Minimum API Level: 14
Updated On: 2025-11-21T18:30:00Z
Built & documented using: FAST v5.3.0
Price: 4💲. Get Paid aix from here
Find more info : on GitHub
Demo



Blocks
Documentation
Event:
BaghChaal has total 1 event.
1. OnStatusChanged
Event raised when game status changes.
| Parameter | Type |
|---|---|
| turn | number |
| status | text |
Methods:
BaghChaal has total 2 methods.
1. Initialize
Initialize the Bagh Chaal game inside the given arrangement.
| Parameter | Type |
|---|---|
| arrangement | component |
2. ResetGame
Reset the game to initial state
Setters:
BaghChaal has total 22 setter properties.
1. GoatsImage
Set the goat image from app assets (filename relative to assets). Example: 'goat.png'
- Input type:
text
2. TigerImage
Set the tiger image from app assets (filename relative to assets). Example: 'tiger.png'
- Input type:
text
3. PlayerOneColor
Color for Player One (Tigers)
- Input type:
number
4. PlayerTwoColor
Color for Player Two (Goats)
- Input type:
number
5. PieceScale
Scale factor for game pieces (0.35 to 1.0)
- Input type:
number
6. BackgroundColor
Background color of the game board
- Input type:
number
7. BoardWidthScale
Width scale factor for the board (0.5 to 1.0)
- Input type:
number
8. BoardHeightScale
Height scale factor for the board
- Input type:
number
9. BoardMargin
Margin around the board in pixels
- Input type:
number
10. StatusTextColor
Color for status text
- Input type:
number
11. StatusTextSize
Size of status text
- Input type:
number
12. ComputerEnabled
Whether computer player is enabled
- Input type:
boolean
13. ComputerPlayer
Which player is computer (1=Tiger, 2=Goat)
- Input type:
number - Helper type:
PlayerType - Helper enums:
ONE,TWO
14. OrientationTopToBottom
Whether board orientation is top to bottom
- Input type:
boolean
15. BoardDesign
Board design type (BASIC, MOUNTAIN, or PYRAMID_17)
- Input type:
text - Helper type:
DesignType - Helper enums:
BASIC,MOUNTAIN,PYRAMID_17
16. HintColor
Color for hint circles showing valid moves
- Input type:
number
17. MaxGoatsBasic
Set the maximum number of goats for BASIC board type. Use -1 to reset to default (20).
- Input type:
number
18. MaxGoatsMountain
Set the maximum number of goats for MOUNTAIN board type. Use -1 to reset to default (13).
- Input type:
number
19. MaxGoatsPyramid17
Set the maximum number of goats for PYRAMID_17 board type. Use -1 to reset to default (14).
- Input type:
number
20. MaxTigersBasic
Set the maximum number of tigers for BASIC board type. Use -1 to reset to default (4).
- Input type:
number
21. MaxTigersMountain
Set the maximum number of tigers for MOUNTAIN board type. Use -1 to reset to default (3).
- Input type:
number
22. MaxTigersPyramid17
Set the maximum number of tigers for PYRAMID_17 board type. Use -1 to reset to default (3).
- Input type:
number
Getters:
BaghChaal has total 19 getter properties.
1. PlayerOneColor
Color for Player One (Tigers)
- Return type:
number
2. PlayerTwoColor
Color for Player Two (Goats)
- Return type:
number
3. PieceScale
Scale factor for game pieces (0.35 to 1.0)
- Return type:
number
4. BackgroundColor
Background color of the game board
- Return type:
number
5. BoardWidthScale
Width scale factor for the board (0.5 to 1.0)
- Return type:
number
6. BoardHeightScale
Height scale factor for the board
- Return type:
number
7. BoardMargin
Margin around the board in pixels
- Return type:
number
8. StatusTextColor
Color for status text
- Return type:
number
9. StatusTextSize
Size of status text
- Return type:
number
10. ComputerEnabled
Whether computer player is enabled
- Return type:
boolean
11. IsComputerPlayer
Which player is computer (1=Tiger, 2=Goat)
- Return type:
number
12. IsOrientationTopToBottom
Whether board orientation is top to bottom
- Return type:
boolean
13. IsBoardDesign
Board design type (BASIC, MOUNTAIN, or PYRAMID_17)
- Return type:
text
14. Turn
Current turn (1=Tiger, 2=Goat)
- Return type:
number
15. GoatsOnHand
Number of goats remaining to place
- Return type:
number
16. GoatsDead
Number of goats killed
- Return type:
number
17. GameOver
Whether the game is over
- Return type:
boolean
18. StatusMessage
Current status message
- Return type:
text
19. HintColor
Color for hint circles showing valid moves
- Return type:
number
Thanks
@TechHamara
Thanks this Community and ai2 platform to build Block based apps.
Feel free to contact us any quarry or suggestions.


