[Paid] BaghChaal it's a disproportionate strategy Board game

🧩 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

:memo: Specifications


:package: Package: io.th.baghchaal
:floppy_disk: Size: 33.01 KB
:gear: Version: 1.0
:iphone: Minimum API Level: 14
:date: Updated On: 2025-11-21T18:30:00Z
:computer: Built & documented using: FAST v5.3.0
:arrow_down: Price: 4💲. Get Paid aix from here
:placard: Find more info : on GitHub

Demo

blocks (7)

e9cbaedc-b15d-44f1-9ecb-0f0a8d67773f

44e66628-87fb-4080-80dc-409483e6fb70

008d868a-40a7-4f58-9205-e529daf39ad5

Blocks

OnStatusChanged_Event


Initialize_Method
ResetGame_Method


OrientationTopToBottom_Set_Property
MaxTigersPyramid17_Set_Property
MaxTigersMountain_Set_Property
MaxTigersBasic_Set_Property
MaxGoatsPyramid17_Set_Property
MaxGoatsMountain_Set_Property
MaxGoatsBasic_Set_Property
IsOrientationTopToBottom_Get_Property
IsComputerPlayer_Get_Property
IsBoardDesign_Get_Property
HintColor_Set_Property
HintColor_Get_Property
GoatsOnHand_Get_Property
GoatsImage_Set_Property
GoatsDead_Get_Property
GameOver_Get_Property
ComputerPlayer_Set_Property
ComputerEnabled_Set_Property
ComputerEnabled_Get_Property
BoardWidthScale_Set_Property
BoardWidthScale_Get_Property
BoardMargin_Set_Property
BoardMargin_Get_Property
BoardHeightScale_Set_Property
BoardHeightScale_Get_Property
BoardDesign_Set_Property
BackgroundColor_Set_Property
BackgroundColor_Get_Property
Turn_Get_Property
TigerImage_Set_Property
StatusTextSize_Set_Property
StatusTextSize_Get_Property
StatusTextColor_Set_Property
StatusTextColor_Get_Property
StatusMessage_Get_Property
PlayerTwoColor_Set_Property
PlayerTwoColor_Get_Property
PlayerOneColor_Set_Property
PlayerOneColor_Get_Property
PieceScale_Set_Property
PieceScale_Get_Property

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.

1 Like

Thank you for your contribution
Usually the helper block values also follow the naming conventions

BASIC --> Basic
PYRAMID_17 --> Pyramid17
MOUNTAIN--> Mountain
ONE --> One

Taifun

1 Like