Jump to content

Easter Eggs


bpond

Recommended Posts

Hello,

 

Probably a low-importance topic here, but I thought that those on here would get as much of a kick out of a project like this as I do.

 

Here is the start for a version of "LIGHT'S OUT!" to be included as an Easter Egg in the diagnostic screens on a line of our machines.

 

Game-play works well.  Not finished is the win routine and the population for the table containing the initial puzzle states.  In the 5x5 version of this puzzle, not all initial states are solvable, so I only wanted to include the winnable arrangements for the customer. (Check out the paper "Turning Lights Out with Linear Algebra" by Anderson and Feil for more info.)

 

Any suggestions, shares or similar ventures would be appreciated.

 

 

*NOTE* Went to post, and apparently the source is too big to fit and the forum rules won't let me post ladder exports.  Any other place where people are sharing whole code for UniStream?

post-29536-0-69349800-1430256950_thumb.jpg

  • Upvote 1
Link to comment
Share on other sites

Cara, thanks for including the ability to attach .ulle's.

 

Here is my exported ladder so far.

 

Currently, it won't re-load a new game and the win routine is non-existent.  Still, I wanted to illustrate the gameplay.

 

I created the structs for the individual lights with integers to indicate the x and y data for the button.  There is a simple rule for a general button press, but I haven't thought of a way to write it as ladder logic in a way that's easier than just writing out 25 lines of toggles.  I'm keeping them around just in case I or someone else thinks of something clever.

 

Also, I'm hoping to move the variables out of the global registry into the local register for the function.

 

I probably won't get to look at this again until at least the weekend, but I'll be updating this thread as I go,

 

Cheers!

Lights Out Ladder.ulle

Lights Out Ladder.ulle

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...