Author Topic: Binary Puzzle for NSpire  (Read 13458 times)

0 Members and 2 Guests are viewing this topic.

Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Binary Puzzle for NSpire
« on: February 28, 2014, 01:03:40 pm »
Hey Guys,

After playing Binary Puzzle (http://www.binarypuzzle.com/) I found it to be a fun game.  So I adapted it to the TI-Nspire calculator!

Each level has a solution; but I also made it so you can press the 'A' key and it'll auto-move for you.  I was finding some levels kinda tedious with looking for all of the two consecutive numbers in a row.

How many levels are there?  Well in the .tns file included in the .zip which you can put on your calculator has 200 levels plus the ability to run external level sets.  But there is a Makefile flag that can be activate that opens you up to a whopping 2000 levels.  I just build the 200 level version for a smaller filesize file.  So 6x6, 8x8, 10x10, 12x12 and 14x14 sizes each with difficulties Easy, Medium, Hard, and Very Hard and by default 10 levels but with the flag activated is 100 levels in each of those cases.

I found it a fun game to play; but try it for yourself and let me know what you think! :)

All sources included.

Offline harold

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 226
  • Rating: +41/-3
    • View Profile
Re: Binary Puzzle for NSpire
« Reply #1 on: February 28, 2014, 01:06:28 pm »
How do you generate them?

Also, do you want to borrow some hard 8x8 instances?
Blog about bitmath: bitmath.blogspot.nl
Check the haroldbot thread for the supported commands and syntax.
You can use haroldbot from this website.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Binary Puzzle for NSpire
« Reply #2 on: February 28, 2014, 01:06:55 pm »
Yay, Binary Puzzles are fun!
Too bad I don't have a nspire :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Re: Binary Puzzle for NSpire
« Reply #3 on: February 28, 2014, 01:11:51 pm »
Hi Harold,

I didn't generate them; I wrote a small executable that downloads the HTML from http://www.binarypuzzle.com/puzzles.php?size=%d&level=%d&nr=%d where the first %d is 6, 8, 10, 12, 14; the second one is 1-4; and the third one is 1-100.  And in that HTML is the puzzel as well as the solution.  I converted from that into the make-up of how this program reads in the puzzle files.

On the 8x8 puzzles: Sure!  How many do you got?  I've been hoping somebody would make an external level for this game.

Have a great day!

Offline harold

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 226
  • Rating: +41/-3
    • View Profile
Re: Binary Puzzle for NSpire
« Reply #4 on: February 28, 2014, 01:18:53 pm »
I didn't generate them; I wrote a small executable that downloads the HTML from http://www.binarypuzzle.com/puzzles.php?size=%d&level=%d&nr=%d where the first %d is 6, 8, 10, 12, 14; the second one is 1-4; and the third one is 1-100.  And in that HTML is the puzzel as well as the solution.  I converted from that into the make-up of how this program reads in the puzzle files.
Oh, ok. I was hoping there would finally be someone that I could really talk discuss the generation of binary puzzles with. Maybe we can still do that, but it would have been interesting to compare our methods and so on.
On the 8x8 puzzles: Sure!  How many do you got?  I've been hoping somebody would make an external level for this game.
Depends on how long you want to wait. Here's some: https://dl.dropboxusercontent.com/u/27035142/level5.txt (that's about 3.5 thousand of them)
You can see by the timestamps that I'm generating them pretty quickly.
« Last Edit: February 28, 2014, 01:23:29 pm by harold »
Blog about bitmath: bitmath.blogspot.nl
Check the haroldbot thread for the supported commands and syntax.
You can use haroldbot from this website.

Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Re: Binary Puzzle for NSpire
« Reply #5 on: February 28, 2014, 02:47:24 pm »
What I gotta do is make it so external levels as a pack of levels and not a single level per external level file.  Because at one time I had hundred and hundreds of files on my calculator and when I went under the "My Documents" on the calculator it took a while.

I guess the one reason I haven't made that yet is I'm not sure how to expose it in the UI.  You run the level set; do I show the list of levels or do I start you in the first level?  Nonetheless I should really figure that part out!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Binary Puzzle for NSpire
« Reply #6 on: March 01, 2014, 01:00:17 am »
Looks nice :D

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: Binary Puzzle for NSpire
« Reply #7 on: March 01, 2014, 04:56:21 am »
Thank you ajorians, this program is beautiful! :D
A little improvement that you could bring: save the current progression even when the user quits the game.



Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Re: Binary Puzzle for NSpire
« Reply #8 on: March 02, 2014, 09:43:24 am »
Hey Guys,

Thanks for the comments!

mdr1: Yeah, I do need that feature (the ability to completely exit the program and return where I left off).  I'll work on that part!

Have a great day!

Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Re: Binary Puzzle for NSpire
« Reply #9 on: March 04, 2014, 07:51:33 pm »
Hey Guys,

I got it so you can completely exit the program and upon returning it'll ask if you'd like to continue the game or end that game.  I did some bug fixing and tested it on a non-CX NSpire.  I didn't get to multiple puzzles in 1 .tns external level file that I was mentioning with harold about.

But I do got a nice YouTube video:
<iframe width="420" height="315" src="//www.youtube.com/embed/1iw_TSuV0F0" frameborder="0" allowfullscreen></iframe>
If that didn't work here is the link: http://www.youtube.com/watch?v=1iw_TSuV0F0

I attached is the latest.  I hope you like it!

Have a great day!

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Binary Puzzle for NSpire
« Reply #10 on: March 05, 2014, 02:40:45 am »
Hi, I think you need to use the [youtube] tag actually for Youtube vids. Nice update btw :D

Offline SpiroH

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 729
  • Rating: +153/-23
    • View Profile
Re: Binary Puzzle for NSpire
« Reply #11 on: March 05, 2014, 09:20:36 am »
Hey Guys,
...
I attached is the latest.  I hope you like it!
Great as usual (beware when producing something against ppl expectations, though  ;) . Unfortunately, i dunno yet how to +1 you* as the new theme is still a WIP so we shouldn't mess with it, just yet.
*Wait..., i've managed to increase your rating (we need to enter a reason. No problem for me...)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Binary Puzzle for NSpire
« Reply #12 on: March 07, 2014, 01:23:40 am »
Yeah I was confused as well because I thought the icons would be located to the top-right, but then I realized that the post rating system was actually now part of the SMF karma system, which is why the icons are still located in the mini-profile.  I like the new system more since it's less misleading (eg your rating now displays negative votes separately, although it feels weird to be in the top 5 most smited people now XD) and it's more abuse-proof.

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: Binary Puzzle for NSpire
« Reply #13 on: March 09, 2014, 08:06:57 am »
Nice! And it is great that the previous scores are kept with this new version.
If I could suggest one other thing: make your own menu to choose if we continue the current game instead of the OS dialog box. :)

EDIT: And why not move the cursor just with the finger on the touchpad? Like a BlackBerry for example.
 
« Last Edit: March 09, 2014, 08:08:36 am by mdr1 »



Offline ajorians

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 105
  • Rating: +47/-0
    • View Profile
Re: Binary Puzzle for NSpire
« Reply #14 on: October 12, 2014, 03:26:12 pm »
Hi Guys,

Thanks for the comments!

It wouldn't be hard to replace the OS dialog box asking if the user want to continue or not a game that was in progress with a simple message of my own.  Perhaps I should have because sometimes it behaves somewhat weird and looks weird when mixing SDL + native OS prompts.  I did it again in a level editor in Gravnix.  I'll try to make a graphic message going further (no guarantees though).

Move the cursor with just the finger like on a Blackberry.  Yes this is always great.  I can't remember the reasoning.  The first few games I didn't know how to work with the touchpad and didn't investigate.  I might have thought about it and was concerned the cell would move too fast or you could accidentally place a value in the wrong cell.

I hope the do some more updates at some point on this game!

Thanks and have a great day!