webOS Nation Forums >  Homebrew >  webOS homebrew apps > Pre Chess v0.0.04 [was v0.0.03](7/22)
Pre Chess v0.0.04 [was v0.0.03](7/22)

  Reply
 
LinkBack Thread Tools Display Modes
Old 07/21/2009, 01:20 AM   #1 (permalink)
Member
 
rboatright's Avatar
 
Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
Default Pre Chess v0.0.04 [was v0.0.03](7/22)

Pure javascript chess engine with computer opponent.

Improvements coming but it plays now. Source up on the webos-internals repository as soon as I can push it.

tap a piece that you want to move, tap the place to drop it.

sounds not working, options other than selecting computer color not working, but it does play (poorly)

you can use this to let two humans play each other as well.

have fun

the usual webos-internals MIT license applies. Original source was public domain. (credit in the source.)

Obligatory screen shot screenshot.png

installable ipk file (use sdk to install)
com.boatrights.prechess_0.0.01_all.ipk

fixed icon
com.boatrights.prechess_0.0.02_all.ipk

Version 03 now offers an about screen and a help scene. You can now win! The program now acknowledges a checkmate instead of crashing. improved icon again...

Choice of what to promote to is not yet working...

Looking at the code this does an a/b search to two levels in 0.01 to 0.1 seconds. We could easily go to three or 4 levels and improve game play.

However, regarding end-game, this programs end-game strategy is to win before the end of the game.....

com.boatrights.prechess_0.0.03_all.ipk

Version 0.0.04 update Wed 22 July 2009

com.boatrights.prechess_0.0.04_all.ipk

0.0.04 screenshot
0004 screenshot.png


This minor update dumps the html widgets for mojo widgets.

Proposed for version 05 --
  • New Game button or menu choice
  • withdraw a move button or menu choice (hard)
  • copy/pasteable game log
  • setup option for "short" move codes

Proposed for version 06:

move to the micro-max 4.8 game engine: Micro-Max

Rick

((Visit us at Main Page - WebOS Internals))

Last edited by rboatright; 07/22/2009 at 05:34 PM. Reason: version update
rboatright is offline   Reply With Quote
Old 07/21/2009, 01:29 AM   #2 (permalink)
Member
 
Join Date: Jul 2009
Posts: 92
Likes Received: 0
Thanks: 8
Thanked 13 Times in 4 Posts
Default

I'll check it out.
zacarias is offline   Reply With Quote
Old 07/21/2009, 01:32 AM   #3 (permalink)
Member
 
Join Date: Jun 2009
Posts: 244
Likes Received: 0
Thanks: 11
Thanked 8 Times in 8 Posts
Default

not bad but the icon could use some work
chefjabril11 is offline   Reply With Quote
Old 07/21/2009, 01:34 AM   #4 (permalink)
Member

 
Join Date: Apr 2003
Location: Boston-area
Posts: 6,973
Likes Received: 116
Thanks: 418
Thanked 1,252 Times in 710 Posts
Default

So you say the computer plays, but poorly. How bad is it exactly? Will a decent (but not good) player win every time, or will it give a slight challenge?
jhoff80 is offline   Reply With Quote
Old 07/21/2009, 01:36 AM   #5 (permalink)
Member
 
Join Date: Jun 2009
Posts: 10
Likes Received: 0
Thanks: 10
Thanked 0 Times in 0 Posts
Default

This looks great. If all the background stuff continues to work well it's just a matter of working on some of the UI elements to make it easier to click and such and do it more like the Palm applications. Oil's interfaces might be good to look at for ideas with Blocked and Dot Game, he's made some very slick interfaces that are touch friendly but can be easily implemented.

Keep up the great work.
mike_103 is offline   Reply With Quote
Old 07/21/2009, 07:16 AM   #6 (permalink)
Homebrew Developer
 
milominderbinder's Avatar
 
Join Date: Mar 2005
Location: ↑ iPhone Black Launcher Theme
Posts: 4,593
Likes Received: 117
Thanks: 2,535
Thanked 3,156 Times in 908 Posts
Default

Rick,

This is a great start!

Thank you!

The Pre has Chess!

- Craig
__________________
- Milo
Getting StartedRingtonesVideos/MoviesPatches/ThemesMusic Player(Remix)
Battery LifeBackup/SyncingGreat Signal-AiraveiPhone ThemeForum Guidelines
milominderbinder is offline   Reply With Quote
Old 07/21/2009, 07:49 AM   #7 (permalink)
Member
 
rboatright's Avatar
 
Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
Default

I'll pre-it-up over the next few days.

regarding interfaces, I will make the other-than-game-play interfaces better, but the chess board itself is limited by _having_ to be 8x8 that makes the touch targets 320/8 =40px

Palm's reccomendation is that touch targets be 42, so this is close, and I just -can't- make them larger.
rboatright is offline   Reply With Quote
Old 07/21/2009, 07:53 AM   #8 (permalink)
Member
 
rboatright's Avatar
 
Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
Default

Quote:
Originally Posted by jhoff80 View Post
So you say the computer plays, but poorly. How bad is it exactly? Will a decent (but not good) player win every time, or will it give a slight challenge?
I've beat it once. I am a CRAPPY player.

The pre is fast enough that I can increase the search depth.

The real problem is that the damned thing doesn't know anything about end-game and dorks around promoting pawns instead of doing a two-rook mate.
rboatright is offline   Reply With Quote
Old 07/21/2009, 08:28 AM   #9 (permalink)
Member
 
rboatright's Avatar
 
Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
Default

I fixed the icon. more later
__________________
Rick_
http://www.webos-internals.org
http://www.1632.org
rboatright is offline   Reply With Quote
Old 07/21/2009, 09:51 AM   #10 (permalink)
Member
 
Join Date: Aug 2007
Posts: 118
Likes Received: 0
Thanks: 29
Thanked 7 Times in 5 Posts
Default

Looking forward to checking this out. I like chess but I SUCK at it. Will be nice to play on the go.
willxcore is offline   Reply With Quote
Old 07/21/2009, 11:04 AM   #11 (permalink)
News Contributor
 
akitayo's Avatar
 
Join Date: Apr 2009
Posts: 1,582
Likes Received: 53
Thanks: 112
Thanked 637 Times in 240 Posts
Default

Thanks rboatright

Are you specialized on games? If so, may I encourage you for a backgammon one.?
akitayo is offline   Reply With Quote
Old 07/21/2009, 11:13 AM   #12 (permalink)
Member
 
boydell's Avatar
 
Join Date: Jun 2009
Posts: 190
Likes Received: 15
Thanks: 26
Thanked 270 Times in 30 Posts
Default

Nice job
boydell is offline   Reply With Quote
Old 07/21/2009, 11:23 AM   #13 (permalink)
Member
 
Join Date: May 2009
Posts: 20
Likes Received: 0
Thanks: 1
Thanked 2 Times in 1 Post
Default

LOL. Good first version. The computer plays hilariously bad! I put the computer against itself and it was white with a queen, rook, and bishop versus black with just a king and it forced a stalemate!!

Can't wait to you update the app with better cpu chess algorithms. Also the game interface needs a "new game/save game" option.

Thanks a lot for this!
Ecoteric is offline   Reply With Quote
Old 07/21/2009, 11:53 AM   #14 (permalink)
Member
 
Join Date: Jun 2009
Location: Central Florida
Posts: 26
Likes Received: 0
Thanks: 25
Thanked 3 Times in 1 Post
Default

Quote:
Originally Posted by akitayo View Post
Thanks rboatright

Are you specialized on games? If so, may I encourage you for a backgammon one.?

Oooh, backgammon would be lovely.
corq is offline   Reply With Quote
Old 07/21/2009, 12:22 PM   #15 (permalink)
Pre Developer
 
PreGame's Avatar
 
Join Date: Jun 2009
Posts: 550
Likes Received: 0
Thanks: 24
Thanked 793 Times in 81 Posts
Default

Quote:
Originally Posted by rboatright View Post
Pure javascript chess engine with computer opponant.

Improvements coming but it plays now. Source up on the webos-internals repository as soon as I can push it.

tap a piece that you want to move, tap the place to drop it.

sounds not working, options other than selecting computer color not working, but it does play (poorly)

you can use this to let two humans play each other as well.

have fun

the usual webos-internals MIT license applies. Original source was public domain. (credit in the source.)

Obligatory screen shot Attachment 23011

installable ipk file (use sdk to install)
Attachment 23012

fixed icon
Attachment 23029
Rick
i love you!
PreGame is offline   Reply With Quote
Old 07/21/2009, 01:01 PM   #16 (permalink)
Member
 
rboatright's Avatar
 
Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
Default

Quote:
Originally Posted by akitayo View Post
Thanks rboatright

Are you specialized on games? If so, may I encourage you for a backgammon one.?
I've been specialized in porting old javascript apps to the pre.

If I can find a PD or MIT or GPL backgammon I'll go for it.

Although _MY_ app (an ebook reader) ought to be getting my time, but I'm learning a lot doing these ports.
__________________
Rick_
http://www.webos-internals.org
http://www.1632.org
rboatright is offline   Reply With Quote
Old 07/21/2009, 01:03 PM   #17 (permalink)
Member
 
rboatright's Avatar
 
Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
Default

don't expect _me_ to get the game engine much better. This is a port of the 5K javascript chess engine. the underlying javascript fits in 5k... and it has NO understanding of end-game (as someone noticed.)

But thanks!
__________________
Rick_
http://www.webos-internals.org
http://www.1632.org
rboatright is offline   Reply With Quote
Old 07/21/2009, 01:31 PM   #18 (permalink)
Member
 
Join Date: Jun 2009
Posts: 2
Likes Received: 0
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Not sure where the rules came from on your app but the computer castled while he was in check. This is... not allowed.
dannyid is offline   Reply With Quote
Old 07/21/2009, 01:48 PM   #19 (permalink)
Member
 
rboatright's Avatar
 
Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
Default

yeah.... the game engine sucks.

I've been looking at other game engines.... this one stinks.

But it will

a) play itself and b) allow two player play using thepre as a board and records the game.

Rick
__________________
Rick_
http://www.webos-internals.org
http://www.1632.org
rboatright is offline   Reply With Quote
Old 07/21/2009, 02:42 PM   #20 (permalink)
Member
 
redskyy's Avatar
 
Join Date: Jun 2009
Posts: 94
Likes Received: 0
Thanks: 52
Thanked 5 Times in 4 Posts
Default

Quote:
Originally Posted by corq View Post
Oooh, backgammon would be lovely.
I agree about Backgammon. I would love to see someone tackle that next.
redskyy is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0