07/21/2009, 01:20 AM
|
#1 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
|
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)) Last edited by rboatright; 07/22/2009 at 05:34 PM. Reason: version update |
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
|
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?
|
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
|
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. |
07/21/2009, 07:16 AM
|
#6 (permalink) |
|
Homebrew Developer
![]() 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
|
Rick,
This is a great start! Thank you! The Pre has Chess! - Craig
__________________
- Milo → Getting Started → Ringtones → Videos/Movies → Patches/Themes → Music Player(Remix) → Battery Life → Backup/Syncing → Great Signal-Airave → iPhone Theme → Forum Guidelines |
07/21/2009, 07:49 AM
|
#7 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
|
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. |
07/21/2009, 07:53 AM
|
#8 (permalink) | |
|
Member
![]() ![]() Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
|
Quote:
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. |
|
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
|
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! |
07/21/2009, 12:22 PM
|
#15 (permalink) | |
|
Pre Developer
![]() ![]() Join Date: Jun 2009
Posts: 550
Likes Received: 0
Thanks: 24
Thanked 793 Times in 81 Posts
|
Quote:
|
|
07/21/2009, 01:01 PM
|
#16 (permalink) | |
|
Member
![]() ![]() Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
|
Quote:
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. |
|
07/21/2009, 01:03 PM
|
#17 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
|
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! |
07/21/2009, 01:48 PM
|
#19 (permalink) |
|
Member
![]() ![]() Join Date: Jun 2009
Location: topeka, ks
Posts: 550
Likes Received: 0
Thanks: 4
Thanked 188 Times in 90 Posts
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



