Live data from Hacker News

Show HN: Spindle, a cross between Wordle and a Rubik's Cube made in PHP

playspindle.com

1–10 of 44 posts

Show HN: Spindle, a cross between Wordle and a Rubik's Cube made in PHP

#1
Hi HN,

I was late to wordle, so I am also late to making my own version.

In Spindle, you rotate words on a grid with the aim of assembling the day’s target word. I enjoy it, so I thought some of you might enjoy it too.

From a tech perspective, it’s a very simple Laravel / Livewire app. My happy place in recent years has been Typescript and SvelteKit, so this was a bit of an adjustment, but it allowed me to take advantage of an existing shared hosting server meaning no additional financial outlay. Happy to report a positive experience with PHP and this framework, although I do miss types! Deploying with rsync feels enjoyably old school.

(I gather PHP does have types now, but perhaps I’m using the wrong IDE or need a specific VS.Code plugin…)

Very happy to answer any questions, although I’m the first to admit it’s very simple from a tech perspective. Your guess at how it was implemented is probably a better solution than what I actually did :)

Happy holidays all!

Show HN: Spindle, a cross between Wordle and a Rubik's Cube made in PHP
playspindle.com

Re: Show HN: Spindle, a cross between Wordle and a Rubik's Cube made in PHP

#4

I love wordle games and this seems like a fun addition! On mobile (Android, Firefox/Chrome), I can't figure out how to spin words longer than 2 letters long, it just flashes red or spins the letters immediately after I tap the second letter

Seems to work if you select the first and last letter of the word you want to spin

Re: Show HN: Spindle, a cross between Wordle and a Rubik's Cube made in PHP

#6
This is a really cool puzzle! As others have said, definitely need better instructions for how to actually make moves, I spent a good amount of moves figuring it out. Also, it would be a nice addition if there was a function to share your results, similar to wordle and other similar online puzzles.

A more out-there suggestion would be a replay (either on the puzzle itself or as a gif) of all the moves you made. Could make it more interesting to share with friends.

Re: Show HN: Spindle, a cross between Wordle and a Rubik's Cube made in PHP

#7
Open source? Would love to see a production Livewire app, especially since it's using v3 with AlpineJS.

PHP does indeed have good support for types now. Laravel as a framework generally eschews them, but it's flexible enough to make it developer preference really.

Re: Show HN: Spindle, a cross between Wordle and a Rubik's Cube made in PHP

#8

This is a really cool puzzle! As others have said, definitely need better instructions for how to actually make moves, I spent a good amount of moves figuring it out. Also, it would be a nice addition if there was a function to share your results, similar to wordle and other similar online puzzles. A more out-there suggestion would be a replay (either on the puzzle itself or as a gif) of all the moves you made. Could…

All great ideas thank you! It’s amazing how the core game can quickly become only 10% of the total functionality!

Re: Show HN: Spindle, a cross between Wordle and a Rubik's Cube made in PHP

#9
post #7

Open source? Would love to see a production Livewire app, especially since it's using v3 with AlpineJS. PHP does indeed have good support for types now. Laravel as a framework generally eschews them, but it's flexible enough to make it developer preference really.

Not yet open source, but probably a switch I can flick on GitHub. Let me check.

EDIT: https://github.com/clarewolftrust/spindle (but definitely take it with a grain of salt!)

It is literally my first php project in years, though, and first Laravel project ever, so might not be the best educational reference!

Re: Show HN: Spindle, a cross between Wordle and a Rubik's Cube made in PHP

#10

I love wordle games and this seems like a fun addition! On mobile (Android, Firefox/Chrome), I can't figure out how to spin words longer than 2 letters long, it just flashes red or spins the letters immediately after I tap the second letter

Seems to work if you select the first and last letter of the word you want to spin

Yes that’s right - the instructions need tweaking, but you tap the first letter, then the last letter, and if it’s a recognised word then it rotates.
Post reply on HN