Author Topic: [LUA] Nonograms  (Read 1839 times)

0 Members and 1 Guest are viewing this topic.

Offline someone

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +9/-0
    • View Profile
[LUA] Nonograms
« on: April 01, 2012, 04:01:20 pm »
Nonogram
Quote
Nonograms, also known as Hanjie, Paint by Numbers, or Griddlers, are picture logic puzzles in which cells in a grid have to be colored or left blank according to numbers given at the side of the grid to reveal a hidden picture. In this puzzle type, the numbers measure how many unbroken lines of filled-in squares there are in any given row or column.

Looking at pianoman's nonograms topic, I saw that the puzzles weren't that interesting, but it had potential to be improved. I remembered that I used to play on the Internet a flash version called TylerK's Picross game, until it was taken down (The word picross is a registered word by Nintendo AFAIK). This version includes a little over 30 puzzles with a size of 15x15.


CONTROLS:
    DIRECTIONAL KEYS - Moves through the puzzle
    ENTER - fills a cell (you solve the puzzle with this one)
    BACKSPACE - crosses out a cell
    RETURN - marks a cell (just for guideline)
    CONTEXT MENU - opens the context menu
    ESC - closes the context menu
    TAB - starts a new level, randomly chosen
    c - checks the puzzle to see if is solved correctly or not
    h - hint
    r - resets the puzzle
    s - solves the puzzle ;)
    p - picks the next puzzle

There are a few things that could be improved, like creating a pop-up to choose the level, marking the already answered puzzles or even be able to create your own puzzles. I guess I'll consider those options if I decide to do a next version of this game...


At last, I would like to give credits to TylerK, I used his puzzles to create the game. And pianoman, I re-coded his work to make it more versatile, thanks a lot :)

EDIT: added control with the number keys (only on the LUA code, though)
« Last Edit: April 13, 2012, 05:38:10 pm by someone »

Offline DJ Omnimaga

  • Now active at https://codewalr.us
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55821
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: [LUA] Nonograms
« Reply #1 on: April 09, 2012, 05:40:23 pm »
Hmm interesting, I'll load this on my calc when I have a chance. :) I remember Pianoman's topic, but I never got time to check it out. I wonder what happened to him anyway, as he didn't post in half a year?
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF


Bandcamp|Reverbnation|Facebook|Youtube|Twitter

Offline Jonius7

  • python! Lua!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1918
  • Rating: +82/-18
  • Still bringing new dimensions to the TI-nspire...
    • View Profile
    • TI Stadium
Re: [LUA] Nonograms
« Reply #2 on: April 11, 2012, 07:37:34 am »
Wow nice! I like the graphics in this game, looked impressive from the first moment.
There's a light grey outline rectangle from the top left corner. Is this intended?
EDIT: Oh nice! It indicates your position. It is a bit glaring/blocking though
EDIT2: Here's a screenshot if you need one
EDIT3: Here's another one. This is fun! Well when I can solve it. I think there are harder ones which are not fun because I can't solve them.
« Last Edit: April 11, 2012, 07:50:23 am by Jonius7 »
Programmed some CASIO Basic in the past
DJ Omnimaga Music Discographist ;)
DJ Omnimaga Discography
My Own Music!
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC
TI-nspire Hold 'em
Health Bar
Scissors Paper Rock
TI-nspire Lua
Numstrat
TI-nspire Hold 'em Lua
Transport Chooser
Secret Project (at v0.08.2 - 2015/05/08)
Spoiler For Extra To-Be-Sorted Clutter:

Spoiler For Relegated Projects:
TI-nspire BASIC
Battle of 16s (stalled) | sTIck RPG (stalled) | Monopoly (stalled) | Cosmic Legions (stalled)
Axe Parser
Doodle God (stalled while I go and learn some Axe)