Unity prototype for tile-based Rummy / Rummikub-style play with drag-and-drop meld building, a guided tutorial flow, and quick board setup tools for testing.
- Human vs computer turn flow
- Drag-and-drop tile movement between hand and table
- Live group state feedback:
VALID,INCOMPLETE,INVALID - Guided tutorial that advances step by step after the required move
Auto Test Setupfor fast manual testing- Runtime-friendly prototype structure with scene-based UI and prefab-driven tile rows
This project currently supports:
- sets: same number, different colors
- runs: same color, consecutive numbers
- 4 colors with duplicate tiles
- 2 jokers
This is still a prototype, so full Rummikub table-rebuild logic and opening-threshold rules are not implemented yet.
- Drag a tile from your hand into a group on the table
- Drag a tile back to your hand to undo a bad move
New Groupcreates an empty row on the tableSort Handsorts the current player handDraw Tiledraws and ends the turnEnd Turnvalidates the table and passes play to the AITutorialstarts a guided learning flowAuto Test Setupcreates a near-finished board for quick testing
The guided tutorial is isolated from the normal game loop and walks the player through specific actions:
- finish a run
- create a new group
- build a valid set
While the tutorial is active, the UI shows the current step and only advances after the expected move is completed.
Assets/Scripts/Rummy/RummyGameController.cscoordinates turns, buttons, tutorial start/stop, and board refreshAssets/Scripts/Rummy/RummyGameState.csowns deck, players, table melds, and helper setupsAssets/Scripts/Rummy/RummyRules.csvalidates sets, runs, and preview statesAssets/Scripts/Rummy/RummyTutorialFlow.csholds the isolated step-by-step tutorial logicAssets/Scripts/Rummy/RummyUi.csbinds scene UI, buttons, hand/table rendering, and tutorial panel contentAssets/Scripts/Editor/RummySceneBuilder.csrebuilds the sample scene UI and prefab wiring from the editor
- Open the project in Unity
6000.3.10f1 - Open
Assets/Scenes/SampleScene.unity - Press Play
- Switch platform to
WebGLin Build Settings - Ensure
Assets/Scenes/SampleScene.unityis included - Build the project
MIT