christos

joined 3 years ago
[–] christos@lemmy.world 2 points 1 month ago

I have just updated the script, now up to 13 disks available (optimal moves: 8191).

It will take a while to solve it...

[–] christos@lemmy.world 3 points 1 month ago (2 children)

I don't know, it is not often that I use exp in writing, however:

$ echo $((2**9-1))
[–] christos@lemmy.world 7 points 1 month ago (2 children)

Yup, this is fat finger mathematics. The correct number is 511, somehow zero got in the way.

[–] christos@lemmy.world 6 points 1 month ago (8 children)

The minimum number of moves required to solve a Tower of Hanoi puzzle is 2**n − 1, where n is the number of disks. 1023 for 10 disks, 5011 for 9 disks (updated max disks in the game). Recursion to the max.

 

cross-posted from: https://lemmy.world/post/47988648

https://gitlab.com/christosangel/hanoi

Hanoi is a simple terminal version of the known classical game Tower of Hanoi, written in Bash.

During the game, the user can move left and right, pick disks and drop them in other stacks.

The aim is to move all the disks from the ORIGIN pile to the DESTINATION pile, in as little moves as possible

hanoi.png

 

cross-posted from: https://lemmy.world/post/47988648

https://gitlab.com/christosangel/hanoi

Hanoi is a simple terminal version of the known classical game Tower of Hanoi, written in Bash.

During the game, the user can move left and right, pick disks and drop them in other stacks.

The aim is to move all the disks from the ORIGIN pile to the DESTINATION pile, in as little moves as possible

hanoi.png

 

cross-posted from: https://lemmy.world/post/47988648

https://gitlab.com/christosangel/hanoi

Hanoi is a simple terminal version of the known classical game Tower of Hanoi, written in Bash.

During the game, the user can move left and right, pick disks and drop them in other stacks.

The aim is to move all the disks from the ORIGIN pile to the DESTINATION pile, in as little moves as possible

hanoi.png

[–] christos@lemmy.world 1 points 1 year ago

UPDATE: Added Levels feature.

[–] christos@lemmy.world 2 points 1 year ago

UPDATE: Added Levels feature.

[–] christos@lemmy.world 1 points 1 year ago

UPDATE: Added Levels feature.

[–] christos@lemmy.world 1 points 1 year ago

I guess you are right, in a dark terminal, a mouse from time to time, and no windows whatsoever...

[–] christos@lemmy.world 3 points 1 year ago (2 children)

What do you mean? Who?

[–] christos@lemmy.world 3 points 1 year ago

I have not searched for this, therefore I don't have much to say. If you are not speaking generally, and asking about mouse support on this game, I would guess that it would be possible in X11, however I cannot speak for Wayland.

[–] christos@lemmy.world 2 points 1 year ago (2 children)

I am not sure I understand, could you elaborate?

 

cross-posted from: https://lemmy.world/post/28754668

https://gitlab.com/christosangel/sausage

sausage is a terminal word forming game, written in Bash.

This game was inspired by https://en.wikipedia.org/wiki/Bookworm_(video_game).

https://gitlab.com/christosangel/sausage/-/raw/main/screenshots/game.png

The aim is to score points by creating words, moving around in six directions in the grid, using consecutive letters.

When the user created longer words, coloured letters appear. The user can score more points by using these coloured letters.

More points can also be scored, when the user manages to create the bonus words.

When smaller words are created, or low point yielding words, red letters appear in the grid. If not used, these red letters will drop one cell in every turn.

When a red letter reaches beyond the bottom of the grid, the game is over.

The user can also reshuffle the letters in the grid, in order to be able to create words. However, there is a price to this action: the existing red letters will drop one cell, all other bonus coloured letters will be lost, and more red letters will appear.

If the score is among the 10 best scores achieved, it makes it in the Top Ten Highscores.

https://gitlab.com/christosangel/sausage/-/raw/main/screenshots/stats.png

This game is named sausage as a tribute to BlackAdder S03E02: Ink and Incapability:

Renowned writer and lexicographer Dr. Samuel Johnson starts to read a tiny scrap of paper containing Baldrick's miniscule novel:

Once upon a time, there was a lovely little sausage called...

...only to realize that after 18 years of arduous work, he failed to include the word SAUSAGE in his magnum opus.

 

https://gitlab.com/christosangel/sausage

sausage is a terminal word forming game, written in Bash.

This game was inspired by https://en.wikipedia.org/wiki/Bookworm_(video_game).

https://gitlab.com/christosangel/sausage/-/raw/main/screenshots/game.png

The aim is to score points by creating words, moving around in six directions in the grid, using consecutive letters.

When the user created longer words, coloured letters appear. The user can score more points by using these coloured letters.

More points can also be scored, when the user manages to create the bonus words.

When smaller words are created, or low point yielding words, red letters appear in the grid. If not used, these red letters will drop one cell in every turn.

When a red letter reaches beyond the bottom of the grid, the game is over.

The user can also reshuffle the letters in the grid, in order to be able to create words. However, there is a price to this action: the existing red letters will drop one cell, all other bonus coloured letters will be lost, and more red letters will appear.

If the score is among the 10 best scores achieved, it makes it in the Top Ten Highscores.

https://gitlab.com/christosangel/sausage/-/raw/main/screenshots/stats.png

This game is named sausage as a tribute to BlackAdder S03E02: Ink and Incapability:

Renowned writer and lexicographer Dr. Samuel Johnson starts to read a tiny scrap of paper containing Baldrick's miniscule novel:

Once upon a time, there was a lovely little sausage called...

...only to realize that after 18 years of arduous work, he failed to include the word SAUSAGE in his magnum opus.

 

cross-posted from: https://lemmy.world/post/28754519

https://gitlab.com/christosangel/sausage

sausage is a terminal word forming game, written in Bash.

This game was inspired by https://en.wikipedia.org/wiki/Bookworm_(video_game).

https://gitlab.com/christosangel/sausage/-/raw/main/screenshots/word1.png

The aim is to score points by creating words, moving around in six directions in the grid, using consecutive letters.

When the user created longer words, coloured letters appear. The user can score more points by using these coloured letters.

More points can also be scored, when the user manages to create the bonus words.

When smaller words are created, or low point yielding words, red letters appear in the grid. If not used, these red letters will drop one cell in every turn.

When a red letter reaches beyond the bottom of the grid, the game is over.

The user can also reshuffle the letters in the grid, in order to be able to create words. However, there is a price to this action: the existing red letters will drop one cell, all other bonus coloured letters will be lost, and more red letters will appear.

If the score is among the 10 best scores achieved, it makes it in the Top Ten Highscores.

https://gitlab.com/christosangel/sausage/-/raw/main/screenshots/stats.png

 

https://gitlab.com/christosangel/sausage

sausage is a terminal word forming game, written in Bash.

This game was inspired by https://en.wikipedia.org/wiki/Bookworm_(video_game).

https://gitlab.com/christosangel/sausage/-/raw/main/screenshots/word1.png

The aim is to score points by creating words, moving around in six directions in the grid, using consecutive letters.

When the user created longer words, coloured letters appear. The user can score more points by using these coloured letters.

More points can also be scored, when the user manages to create the bonus words.

When smaller words are created, or low point yielding words, red letters appear in the grid. If not used, these red letters will drop one cell in every turn.

When a red letter reaches beyond the bottom of the grid, the game is over.

The user can also reshuffle the letters in the grid, in order to be able to create words. However, there is a price to this action: the existing red letters will drop one cell, all other bonus coloured letters will be lost, and more red letters will appear.

If the score is among the 10 best scores achieved, it makes it in the Top Ten Highscores.

https://gitlab.com/christosangel/sausage/-/raw/main/screenshots/stats.png

 

https://gitlab.com/christosangel/sausage

sausage is a terminal word forming game, written in Bash.

This game was inspired by https://en.wikipedia.org/wiki/Bookworm_(video_game).

https://gitlab.com/christosangel/sausage/-/raw/main/screenshots/word1.png

The aim is to score points by creating words, moving around in six directions in the grid, using consecutive letters.

When the user created longer words, coloured letters appear. The user can score more points by using these coloured letters.

More points can also be scored, when the user manages to create the bonus words.

When smaller words are created, or low point yielding words, red letters appear in the grid. If not used, these red letters will drop one cell in every turn.

When a red letter reaches beyond the bottom of the grid, the game is over.

The user can also reshuffle the letters in the grid, in order to be able to create words. However, there is a price to this action: the existing red letters will drop one cell, all other bonus coloured letters will be lost, and more red letters will appear.

If the score is among the 10 best scores achieved, it makes it in the Top Ten Highscores.

https://gitlab.com/christosangel/sausage/-/raw/main/screenshots/stats.png

 

https://gitlab.com/christosangel/deshuffle

deshuffle is a terminal word puzzle game, written in Bash.

The simple aim is to put all the given letters in order to find the shuffled word against the clock. The time available after a number of words also reduces, so the game gets harder as it goes.

There is not only one solution to every puzzle. If the user find a word with the same letters, the solution will be accepted.

By default, the adjusted definitions of the words appear in the end of each round.

The game ends when the user fails to find the word in time, or fails to create an acceptable solution altogether.

If the score is among the 10 best scores achieved, it makes it in the Top Ten Highscores.

This game was inspired by https://wordnerd.co/23words/.

 

https://gitlab.com/christosangel/deshuffle

deshuffle is a terminal word puzzle game, written in Bash.

The simple aim is to put all the given letters in order to find the shuffled word against the clock. The time available after a number of words also reduces, so the game gets harder as it goes.

There is not only one solution to every puzzle. If the user find a word with the same letters, the solution will be accepted.

By default, the adjusted definitions of the words appear in the end of each round.

The game ends when the user fails to find the word in time, or fails to create an acceptable solution altogether.

If the score is among the 10 best scores achieved, it makes it in the Top Ten Highscores.

This game was inspired by https://wordnerd.co/23words/.

 

https://gitlab.com/christosangel/deshuffle

deshuffle is a terminal word puzzle game, written in Bash.

The simple aim is to put all the given letters in order to find the shuffled word against the clock. The time available after a number of words also reduces, so the game gets harder as it goes.

There is not only one solution to every puzzle. If the user find a word with the same letters, the solution will be accepted.

By default, the adjusted definitions of the words appear in the end of each round.

The game ends when the user fails to find the word in time, or fails to create an acceptable solution altogether.

If the score is among the 10 best scores achieved, it makes it in the Top Ten Highscores.

This game was inspired by https://wordnerd.co/23words/.

 

https://gitlab.com/christosangel/deshuffle

deshuffle is a terminal word puzzle game, written in Bash.

The simple aim is to put all the given letters in order to find the shuffled word against the clock. The time available after a number of words also reduces, so the game gets harder as it goes.

There is not only one solution to every puzzle. If the user find a word with the same letters, the solution will be accepted.

By default, the adjusted definitions of the words appear in the end of each round.

The game ends when the user fails to find the word in time, or fails to create an acceptable solution altogether.

If the score is among the 10 best scores achieved, it makes it in the Top Ten Highscores.

This game was inspired by https://wordnerd.co/23words/.

view more: next ›