Skip to content

JeremyFail/SameGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Same Game Logo

License: MIT

A modern Java reimagining of the classic Windows 3.1 Same Game by Ikuo Hirohata. Click groups of matching tiles, clear the board, and chase a high score - with undo/redo, multiple visual skins, and plenty of customization options.

How to Play

Same Game is played on a grid of colored blocks.

  1. Click a group of two or more adjoining blocks of the same color to highlight them. Notice the amount of points the selection is worth (bottom left corner of the screen).
  2. Click again on the highlighted group to remove it and score the points displayed.
  3. Click elsewhere to clear the highlight without removing blocks.
  4. After removal, blocks fall down and empty columns slide left.
  5. The game ends when no more groups of two or more can be removed.
  6. Your goal is to remove as many blocks as possible - ideally all of them.

Scoring

You score more points for removing larger groups at a time. The formula for scoring points for removing n blocks in one move:

Points(n) = n² − 3n + 4
Blocks removed Points
2 2
3 4
4 8
5 14
6 22

Look for big clusters when you can!

Features

  • Classic Same Game rules - adjacent blocks score points, gravity, and column collapse
  • Undo / Redo - experiment with different moves without starting over
  • High scores - top 10 scores saved with board size, color count, and date
  • Board sizes - Small (10×10), Normal (20×10), Large (20×20), or Custom (Any size from 5×5 to 50×50)
  • Three Difficulty levels - Easy (clustered colors), Medium (random), Hard (scattered colors)
  • Optional countdown timer - configurable time limit (default 180 seconds)
  • Multiple tile skins - Modern, Classic, Marbles, Blockcraft, Bricks, Shapes, and Gems
  • Themes & backgrounds - Light/Dark UI themes; black or green background
  • Custom colors - pick your own palette (3–6 colors) in Advanced Options
  • Animations - animated tile movement (click the board to skip); can be toggled on/off
  • Sound effects - subtle audio cues for each action, enhancing the gameplay experience; can be toggled on/off.
  • Optional background music - soothing background music (can be toggled on/off)
  • Internationalization - language support (English included - feel free to contribute a translated language file!)

Keyboard Shortcuts

Shortcut Action
F2 New Game
F1 Help
Ctrl+Z Undo
Ctrl+Y Redo

Options Overview

Menu Notable options
File New Game, Restart (same board seed), Undo, Redo, Exit
Options Language, Difficulty, Size, Sound, Animations, Advanced
View Skin, Objectives (remaining blocks per color), High Scores
Help In-app help, About

Advanced Options lets you customize board dimensions, number of colors, timer, skin, UI theme, background, tile colors, randomness (shuffle intensity within the chosen difficulty), and more.

Requirements

  • Java 21 or later

Build

mvn clean package

Run

java -jar "target/Same Game 1.0.0.jar"

Or during development:

mvn exec:java -Dexec.mainClass="com.failprooftech.SameGame"

About

A modern reimagination of the classic Windows 3.1 version of Same Game by Ikuo Hirohata, written in Java.

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages