webOS Nation Forums > Homebrew > webOS homebrew apps > Pre Chess v0.0.04 [was v0.0.03](7/22)
1 2 3 4 
Member: rboatright
at: 02:20 AM 07/21/2009
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 --
Proposed for version 06:

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

Rick

((Visit us at Main Page - WebOS Internals))
Attached:
Reply
Member: zacarias
at: 02:29 AM 07/21/2009
I'll check it out.
Reply
Member: chefjabril11
at: 02:32 AM 07/21/2009
not bad but the icon could use some work
Reply
Member: jhoff80
at: 02:34 AM 07/21/2009
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?
Reply
Member: mike_103
at: 02:36 AM 07/21/2009
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.
Reply
Homebrew Developer: milominderbinder
at: 08:16 AM 07/21/2009
Rick,

This is a great start!

Thank you!

The Pre has Chess!

- Craig
Reply
Member: rboatright
at: 08:49 AM 07/21/2009
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.
Reply
Member: rboatright
at: 08:53 AM 07/21/2009
Originally Posted by jhoff80:
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.
Reply
Member: rboatright
at: 09:28 AM 07/21/2009
I fixed the icon. more later
Reply
Member: willxcore
at: 10:51 AM 07/21/2009
Looking forward to checking this out. I like chess but I SUCK at it. Will be nice to play on the go.
Reply
News Contributor: akitayo
at: 12:04 PM 07/21/2009
Thanks rboatright

Are you specialized on games? If so, may I encourage you for a backgammon one.?
Reply
Member: boydell
at: 12:13 PM 07/21/2009
Nice job
Reply
Member: Ecoteric
at: 12:23 PM 07/21/2009
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!
Reply
Member: corq
at: 12:53 PM 07/21/2009
Originally Posted by akitayo:
Thanks rboatright

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

Oooh, backgammon would be lovely.
Reply
Pre Developer: PreGame
at: 01:22 PM 07/21/2009
Originally Posted by rboatright:
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!
Reply
Member: rboatright
at: 02:01 PM 07/21/2009
Originally Posted by akitayo:
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.
Reply
Member: rboatright
at: 02:03 PM 07/21/2009
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!
Reply
Member: dannyid
at: 02:31 PM 07/21/2009
Not sure where the rules came from on your app but the computer castled while he was in check. This is... not allowed.
Reply
Member: rboatright
at: 02:48 PM 07/21/2009
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
Reply
Member: redskyy
at: 03:42 PM 07/21/2009
Originally Posted by corq:
Oooh, backgammon would be lovely.
I agree about Backgammon. I would love to see someone tackle that next.
Reply
1 2 3 4 
webOS Nation Forums > Homebrew > webOS homebrew apps > Pre Chess v0.0.04 [was v0.0.03](7/22)