Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Add infinite mode - #55

Closed
llohanda wants to merge 4 commits into
LonamiWebs:masterfrom
llohanda:master
Closed

llohanda wants to merge 4 commits into
LonamiWebs:masterfrom
llohanda:master

Conversation

@llohanda

Copy link
Copy Markdown

This is the infinite mode I had referenced in issue #51. Could you please review it?

Also, I had a bit of hard time figuring out how to create icons with Photoshop, and infinite marks are not naturally square-shaped. To indicate that player was using infinite mode, I decided to change the game over reason to "made wrong move" since we can assume that's what happened.

Comment thread core/src/io/github/lonamiwebs/klooni/game/State.java
Comment thread core/src/io/github/lonamiwebs/klooni/game/State.java Outdated
Comment thread core/src/io/github/lonamiwebs/klooni/game/State.java Outdated

public static Piece[] validateBlock(Piece[] holder, Board board) {
long invocationTime = System.nanoTime();
State initialState = new State(board);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, we're rebuilding the entire state every time we need to validate a piece instead of keeping it in synchrony with the board itself. Though it's true this is only ran when more pieces are needed and that's not common, so I believe it's okay.

Comment thread core/src/io/github/lonamiwebs/klooni/game/State.java
Comment thread core/src/io/github/lonamiwebs/klooni/game/State.java Outdated
Comment thread core/src/io/github/lonamiwebs/klooni/game/State.java
Comment thread core/src/io/github/lonamiwebs/klooni/game/State.java
Comment thread core/src/io/github/lonamiwebs/klooni/game/State.java Outdated
@Lonami

Lonami commented Oct 20, 2018

Copy link
Copy Markdown
Member

Despite the fact you should reformat the file so the style is consistent, the code itself looks alright. A bit too much of copy-pasting from Board but I understand it's a first prototype and this can always be further integrated later. Some parts should be commented or explained.

@Lonami

Lonami commented Oct 20, 2018

Copy link
Copy Markdown
Member

Regarding the icons, those are no problem. I can add them with the rest at https://github.com/LonamiWebs/Klooni1010/blob/master/original-resources/buttons.svg.

@Lonami

Lonami commented Feb 11, 2026

Copy link
Copy Markdown
Member

Hi, I'm growing tired of GitHub, so I intend to move to https://codeberg.org/Lonami/Klooni1010.

I frankly don't remember much of the code myself, so I don't even know if I'd be able to review this without spending a fair amount of time on it myself first. TBH probably the game should be updated to the latest libGDX before attempting any changes.

@Lonami Lonami closed this Feb 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants