nono: a game based on no

Show off your games, demos and other (playable) creations.
User avatar
darkfrei
Party member
Posts: 1204
Joined: Sat Feb 08, 2020 11:09 pm

Re: nono: a game based on no

Post by darkfrei »

milon wrote: Tue Jun 22, 2021 7:31 pm Fun game!

Not sure if it's a bug or a feature, but the web implementation does not enforce a unique solution. I just encountered a game where there were 2 possible solutions. I took a screenshot, but somehow the picture didn't actually save. :ehem:
I saw it too, but both of them are correct.
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
milon
Party member
Posts: 472
Joined: Thu Jan 18, 2018 9:14 pm

Re: nono: a game based on no

Post by milon »

darkfrei wrote: Tue Jun 22, 2021 8:06 pm
milon wrote: Tue Jun 22, 2021 7:31 pm Fun game!

Not sure if it's a bug or a feature, but the web implementation does not enforce a unique solution. I just encountered a game where there were 2 possible solutions. I took a screenshot, but somehow the picture didn't actually save. :ehem:
I saw it too, but both of them are correct.
Right, that's what I'm saying: Sometimes there's more than 1 correct solution. That may be a bug or a feature, depending on the author's intent. It wasn't clear to me which case it was, so I was bringing it to the author's attention.
Any code samples/ideas by me should be considered Public Domain (no attribution needed) license unless otherwise stated.
monolifed
Party member
Posts: 188
Joined: Sat Feb 06, 2016 9:42 pm

Re: nono: a game based on no

Post by monolifed »

I thought, enforcing a unique solution wouldn't be good. It calculates a random grid, calculates the column and row numbers, then clears the grid. Downside is two different seed values can give you the same puzzle.
User avatar
milon
Party member
Posts: 472
Joined: Thu Jan 18, 2018 9:14 pm

Re: nono: a game based on no

Post by milon »

Okay, feature then. Thanks for clarifying. :)

And I'd expect seed collisions like that would be rare enough to not matter.
Any code samples/ideas by me should be considered Public Domain (no attribution needed) license unless otherwise stated.
monolifed
Party member
Posts: 188
Joined: Sat Feb 06, 2016 9:42 pm

Re: nono: a game based on no

Post by monolifed »

Improved user interface and new single solution mode
Attachments
options.png
options.png (55.47 KiB) Viewed 7501 times
game.png
game.png (54.68 KiB) Viewed 7501 times
User avatar
Gunroar:Cannon()
Party member
Posts: 1143
Joined: Thu Dec 10, 2020 1:57 am

Re: nono: a game based on no

Post by Gunroar:Cannon() »

Nice, which UI lib did you use. Your own or...?
The risk I took was calculated,
but man, am I bad at math.

-How to be saved and born again :huh:
monolifed
Party member
Posts: 188
Joined: Sat Feb 06, 2016 9:42 pm

Re: nono: a game based on no

Post by monolifed »

Yes, my own
Bri_G
Prole
Posts: 8
Joined: Fri Dec 19, 2014 10:46 pm

Re: nono: a game based on no

Post by Bri_G »

Just tried out your latest update on the downloaded Love2D version and think I have run into a problem. Not sure if it is a problem or the way it is designed. In short - some of the clues show positive (ie that the line is correct) when it's not - your 'Left' counter shows 0 when there are still incorrectly displayed lines. You may have designed it that way, but I find it confusing. An image attached to show you what I mean.

On another point - I have tried to emulate your NoNo on an iPad using Codea (Included under the same licence as yours), and have made it work. The reality is it's got a similar front end to yours but with totally different code (my coding is far more disorganised than yours). Just thought I'd mention that I use checking for horiontal and vertical lines by creating a string and comparing that to a target string and it works for checking each line. Also a check for reaching the complete solution is just done on the horisontal lines. You can download my version from the Codea website if you want to check it out.

Thanks for publishing this I have really enjoyed adapting it to Codea and I find it a little addictive.
Attachments
IMG_1045.PNG
IMG_1045.PNG (374.22 KiB) Viewed 7203 times
Screenshot 2021-08-11 at 18.41.32.png
Screenshot 2021-08-11 at 18.41.32.png (598.12 KiB) Viewed 7203 times
Forever computer geek but coding amateur :cool:
monolifed
Party member
Posts: 188
Joined: Sat Feb 06, 2016 9:42 pm

Re: nono: a game based on no

Post by monolifed »

Your NoNo looks good.

For the "Left": yes, it is a little misleading. It is "squares in the solution" - "squares on the grid"
So, it can be negative too. "Left" makes more sense in single solution mode.
I can remove it since there are already column/row indicators
Bri_G
Prole
Posts: 8
Joined: Fri Dec 19, 2014 10:46 pm

Re: nono: a game based on no

Post by Bri_G »

Thought it might be that. But if you look at the image I posted - all the clues on the left say resolved whereas two at the top say unresolved.

In the code I made for Codea the clues only change to resolved with the correct number of tiles in the correct positions. I have a routine which checks each line horizontal and vertical. When you get to the final tile to complete the puzzle I thought you would find it easily because it is at the intersection of one vertical and one horizontal line (ie two unfinished lines).

I may be wrong but I thought that was how they were supposed to work so programmed it into my code. I only found this in your latest love2d download, haven't tested your webpage version.
Forever computer geek but coding amateur :cool:
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests