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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.