webOS Nation Forums >  Homebrew >  webOS homebrew apps > Lights Out
Lights Out

  Reply
 
LinkBack Thread Tools Display Modes
Old 08/04/2009, 06:39 AM   #21 (permalink)
Member
 
brandonn95's Avatar
 
Join Date: Jul 2009
Location: Massachusetts
Posts: 27
Likes Received: 0
Thanks: 0
Thanked 1 Time in 1 Post
Default

cant wait to add it when it comes out again!
brandonn95 is offline   Reply With Quote
Old 08/04/2009, 09:10 AM   #22 (permalink)
Homebrew Developer
 
enormous's Avatar
 
Join Date: Dec 2007
Location: D.C. Area
Posts: 195
Likes Received: 0
Thanks: 73
Thanked 39 Times in 20 Posts
Default

Apologies for the snafu. The ipk files will be making a reappearance shortly!
enormous is offline   Reply With Quote
Old 08/04/2009, 11:00 AM   #23 (permalink)
Member
 
Join Date: Jun 2009
Posts: 32
Likes Received: 0
Thanks: 2
Thanked 38 Times in 3 Posts
Default

man... i want to enjoy this game but i am really bad at it :P
__________________
http:/www.codeofdoom.com/wordpress

Five or More for the Palm Pre and Palm Pixi
tont0r is offline   Reply With Quote
Old 08/05/2009, 08:24 AM   #24 (permalink)
Member
 
imhyatt's Avatar
 
Join Date: Jul 2009
Location: Ann Arbor, MI
Posts: 24
Likes Received: 0
Thanks: 16
Thanked 1 Time in 1 Post
Default

This looks great! I hope the ipk is back up soon!!
imhyatt is offline   Reply With Quote
Old 08/05/2009, 09:17 AM   #25 (permalink)
Member
 
Join Date: Aug 2009
Posts: 2
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i had a hand held like, kb toys version of this! cant wait for the re-up!
ddddeuces is offline   Reply With Quote
Old 08/05/2009, 10:07 AM   #26 (permalink)
Homebrew Developer
 
enormous's Avatar
 
Join Date: Dec 2007
Location: D.C. Area
Posts: 195
Likes Received: 0
Thanks: 73
Thanked 39 Times in 20 Posts
Default

OP updated! Inclusion in the App Gallery (and bad timing) were the reason for the missing ipk. Sorry for any inconveniences, now go enjoy!

It's back!! The ipk may now be found in the App Gallery!
http://www.precentral.net/homebrew-apps/lights-out

Please continue to post issues/suggestions in this thread. Thanks for all the support!
enormous is offline   Reply With Quote
Old 08/05/2009, 11:28 AM   #27 (permalink)
Member
 
Join Date: Jul 2009
Posts: 13
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

When I try to dowoad the new version, it fails. I even deleted the old one, still no go.
beng.pre is offline   Reply With Quote
Old 08/05/2009, 01:12 PM   #28 (permalink)
Homebrew Developer
 
enormous's Avatar
 
Join Date: Dec 2007
Location: D.C. Area
Posts: 195
Likes Received: 0
Thanks: 73
Thanked 39 Times in 20 Posts
Default

How are you installing it? I just used fileCoaster and the link from the App Gallery and it (re)installed successfully.
enormous is offline   Reply With Quote
Old 08/05/2009, 04:48 PM   #29 (permalink)
Member
 
Join Date: Jun 2009
Posts: 18
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Great app X2
ocaudi is offline   Reply With Quote
Old 08/06/2009, 10:00 AM   #30 (permalink)
Member
 
niospecv's Avatar
 
Join Date: Jun 2009
Location: McAllen, TX
Posts: 185
Likes Received: 0
Thanks: 46
Thanked 6 Times in 3 Posts
Default

Will wait for it
niospecv is offline   Reply With Quote
Old 08/06/2009, 11:28 AM   #31 (permalink)
Homebrew Developer
 
enormous's Avatar
 
Join Date: Dec 2007
Location: D.C. Area
Posts: 195
Likes Received: 0
Thanks: 73
Thanked 39 Times in 20 Posts
Default

Quote:
Originally Posted by niospecv View Post
Will wait for it
What are you waiting for? Go get it!
enormous is offline   Reply With Quote
Old 08/06/2009, 01:29 PM   #32 (permalink)
Member
 
Join Date: Aug 2009
Posts: 3
Likes Received: 0
Thanks: 3
Thanked 0 Times in 0 Posts
Default

not sure about everyone else but the reset button isn't working for me. love the app though, although i'm terrible at this game
alexmb7 is offline   Reply With Quote
Old 08/10/2009, 09:34 PM   #33 (permalink)
Homebrew Developer
 
enormous's Avatar
 
Join Date: Dec 2007
Location: D.C. Area
Posts: 195
Likes Received: 0
Thanks: 73
Thanked 39 Times in 20 Posts
Lightbulb

New Version! OP updated.

Lights Out v0.4.0 (8/10)
  • Added random game mode NOTE: some random sets MAY NOT BE POSSIBLE TO WIN!
  • Game now starts with all lights in off state
  • Reset button now functions correctly, and will reset random mode to last randomly generated set
  • Changed button style
  • Added counter for number of moves when victorious
  • Added functionality to check if randomly generated set has a solution
enormous is offline   Reply With Quote
Old 08/11/2009, 09:18 AM   #34 (permalink)
Member
 
Join Date: Jun 2009
Posts: 5
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you hit the upper left context menu with a game in progress it clears the board. This is very frustrating. I think the absolute best would be for it to save your state after every button press (a la the sudoku ap in the catalog) so you can quit and come back whenever you want.
askeeve is offline   Reply With Quote
Old 08/11/2009, 10:43 AM   #35 (permalink)
Homebrew Developer
 
enormous's Avatar
 
Join Date: Dec 2007
Location: D.C. Area
Posts: 195
Likes Received: 0
Thanks: 73
Thanked 39 Times in 20 Posts
Default

Quote:
Originally Posted by askeeve View Post
If you hit the upper left context menu with a game in progress it clears the board. This is very frustrating. I think the absolute best would be for it to save your state after every button press (a la the sudoku ap in the catalog) so you can quit and come back whenever you want.
Good find! I guess I had never accessed the app menu while playing. I'll look into a save/restore feature. It will be a good introduction into how data is manipulated on the Pre.

What does everyone think of the random mode and other changes?
enormous is offline   Reply With Quote
Old 08/14/2009, 06:40 PM   #36 (permalink)
Member
 
Mononoko's Avatar
 
Join Date: Jul 2009
Posts: 132
Likes Received: 0
Thanks: 13
Thanked 46 Times in 23 Posts
Default

Palms app catalog just got a version. yours is better
Mononoko is offline   Reply With Quote
Old 08/14/2009, 10:45 PM   #37 (permalink)
Homebrew Developer
 
enormous's Avatar
 
Join Date: Dec 2007
Location: D.C. Area
Posts: 195
Likes Received: 0
Thanks: 73
Thanked 39 Times in 20 Posts
Default

Quote:
Originally Posted by Mononoko View Post
Palms app catalog just got a version. yours is better
Thanks! I've got a couple of features on the drawing board that will hopefully keep mine looking good.
enormous is offline   Reply With Quote
Old 12/03/2009, 09:20 AM   #38 (permalink)
Member
 
Join Date: Dec 2009
Posts: 3
Likes Received: 0
Thanks: 0
Thanked 3 Times in 3 Posts
Default Better GameboardAssistant.prototype.isSolvable function for random games

Improve random game mode (fix solvable check and fix pattern)

Code:
GameboardAssistant.prototype.isSolvable = function(){
	var solvmasks = [0, 7, 10, 13, 17, 22, 27, 28];
	var row = [0, 0, 0, 0, 0];
	/* build bitmasks for rows */
	for (var i = 0; i < 5; i++) {
		for (var j = 0; j < 5; j++) {
			if (this.elementArray[5*i+j]) {
				row[i] = row[i] | (1 << j);
			}
		}
	}
	/* move all lights down to last row */
	for (var i = 1; i < 5; i++) {
		var t = row[i-1];
		/* press "t" in row i */
		row[i-1] = 0; /* 0 == t ^ t: trigger lights in i-1 */
		if (i < 4) row[i+1] = row[i+1] ^ t; /* trigger lights in i+1 */
		t = (t ^ (t >> 1) ^ (t << 1)) & 0x1f; /* trigger lights in i */
		row[i] = row[i] ^ t;
	}

	/* check for solvable bit masks */
	if (solvmasks.indexOf(row[4]) != -1) return;

	/* fix pattern */
	var switchlights = solvmasks[Math.floor(Math.random() * 8)] ^ row[4];
	for (var i = 0; i < 5; i++, switchlights = switchlights >> 1) {
		if (switchlights & 1) {
			var light = 20+i;
			var idx = this.randomArray.indexOf(light);
			if (idx == -1) {
				this.elementOn(light);
				this.randomArray.push(light);
			} else {
				this.elementOff(light);
				this.randomArray.splice(idx, 1);
			}
		}
	}
}
stbuehler is offline   Reply With Quote
Thanked By: enormous
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0