psp Chess

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

psp Chess

Post by cwbowron »

pspChess is a port Boo's Ches Engine to the PSP.

Binary: http://www.cse.msu.edu/~bowronch/pspchess.zip
Screenshot: http://bace.bowron.us/screenshot.png
Source: http://www.cse.msu.edu/~bowronch/pspchess_src.zip

It has an opening book of 800 lines, then will switch over to a search based strategy. You can change the searchdepth via the option menu.

Move selection is done by arrow keys and x. Pressing start and select will change the search depth, Left trigger will back up a move, Right trigger will make the computer play the side who's turn it is.

The source to the original text based BCE is available here:
http://www.bowron.us/FILES/bce.tar.gz for reference.
Last edited by cwbowron on Fri Jul 15, 2005 6:40 am, edited 5 times in total.
cyod
Posts: 36
Joined: Fri Apr 29, 2005 5:46 am

Post by cyod »

Drakonite wrote:Please keep release announcements in the general forum. Thanks.
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

I've worked on it, and gotten the basics of a computer opponent working, still only tested under pspe. As the computer is thinking through its moves it will display the board configuration of the move it is considering...

from readme.txt:

select piece to move using arrows and then press x. Select destination square using arrows then press x.

START decrease searchdepth
SELECT increase searchdepth
RTRIGGER make computer move
LTRIGGER back up a move

known errors:
seeing some illegal and weird moves being made. Set searchdepth to 3, on black's 5th move or so the move will actually move white rook from A1 to C5.
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

I added an opening book of 800 different openings...

A computer opppoenent will follow a book opening as long as one exists, then switch over to a search based move.

I have still not tested this on a real psp. If you have please let me know how it works, and if it does work, what kind of search depth can be used?

Thanks
skippy911
Posts: 46
Joined: Fri May 06, 2005 10:20 am

Post by skippy911 »

Seems to be stuck in an endless loop on my 1.0 psp and wont let me move anything.
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

skippy911 wrote:Seems to be stuck in an endless loop on my 1.0 psp and wont let me move anything.
Thanks for the info...

did it make it through the book loading and then seem stuck in the main loop or did it not even make it that far?
skippy911
Posts: 46
Joined: Fri May 06, 2005 10:20 am

Post by skippy911 »

Loaded about 80 books.
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

skippy911 wrote:Loaded about 80 books.
Thanks.
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

Release version 0.03

Made book loading optional (press square button).
Added more debug display information during search.
Added move sorting before search.
Board flips over when its blacks turn to move.
Last edited by cwbowron on Sat May 28, 2005 6:04 am, edited 1 time in total.
Guest

Post by Guest »

We got software discussion topic now, so throwing it there...
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

RELEASE 0.04

Changes:

display clocks (clocks only change when a move is made)

display alpha and beta in search display

change sceCtlRead functions to use 1 as second parameter (that's what skippy's library functions use)

removed splash screen

added killers display during search
Last edited by cwbowron on Tue May 24, 2005 6:25 am, edited 1 time in total.
emumaniac
Posts: 79
Joined: Sun May 08, 2005 12:22 am

Post by emumaniac »

thanks for the release, shouldnt it be 0.04 release ;)

a mirror page of your release ahs been made here http://psp-news.dcemu.co.uk/pspchess.shtml
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

emumaniac wrote:thanks for the release, shouldnt it be 0.04 release ;)

a mirror page of your release ahs been made here http://psp-news.dcemu.co.uk/pspchess.shtml
Thanks... I fixed the version number... hopefully I'm not regressing down to 0.004...
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

please note that I have changed the file location to:

http://bace.bowron.us/pspchess.zip

RELEASE 0.05

Added GPL license information

Added more status information to display

changed some keys (see readme for current setup)
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

RELEASE 0.06

print out best line during search

switched to elf2pbp which will now use the correct icon during build
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

RELEASE 0.07

g_show_thinking variable (controls whether the computer shows the
moves it is considering. toggle with SQUARE+RTRIGGER) default: off

removed get_time function, reinstated get_ms function, and changed
everything to that. get_ms at this point has only 1 second precision
but is multiplied by 1000 to make it milliseconds

display status information when clearing hashes (because it takes a while)

move stdlib implementations into own file (lib.c)
- fixed type mismatch between my versions and standard
emumaniac
Posts: 79
Joined: Sun May 08, 2005 12:22 am

Post by emumaniac »

awesome release mirror page updated too http://psp-news.dcemu.co.uk/pspchess.shtml
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

RELEASE 0.08

new images - thanks to Stadi Thompson

changed key processing code

Screenshot:
Image
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

RELEASE 0.09

pgFancyPrint - cooler looking fonts [See above picture for screenshot]

display transposition table hit info during search
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

I had some feedback from a user using it on a real psp. Hopefully this will fix some of the issues. If anyone else has uncovered bugs on a real psp or on pspe please post them here.

RELEASE 0.10

bitmap handling code changes

changed key press code to use skippy's Read_Key()

inserted code to handle home button press.

change message about clearing hash tables and switching to search mode
emumaniac
Posts: 79
Joined: Sun May 08, 2005 12:22 am

Post by emumaniac »

great release mirror page updated at http://psp-news.dcemu.co.uk/pspchess.shtml
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

RELEASE 0.11

add in check message

board flipping option (when enabled the board flips when its blacks move)

start key = reset game (with confirmation)

fixed home button (has been confirmed on 1.0 psp)
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

RELEASE 0.12

debug info option

option menu (SELECT)

began adding pondering (psp thinks on your time) (not working yet)

added mswap exploit file creation to create_eboot
(MS1/EBOOT.PBP, MS2/EBOOT.PBP)
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

RELEASE 0.13

moved everything to makefile

PIC1.PNG

background image (can be turned off)

default setup : WHITE: human, BLACK: psp

display options - you can turn of the options display on main screen

extra keys option - you can turn off some of the key processing

background image for option menu - thanks to Stadi Thompson
wulf
Posts: 81
Joined: Wed Apr 13, 2005 6:56 pm

Post by wulf »

I have a question for you!

Do you use the psp-dev environment or the "ee-gcc -march=r4000 etc" environment for your chess game?
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

wulf wrote: Do you use the psp-dev environment or the "ee-gcc -march=r4000 etc" environment for your chess game?
ee-gcc -march=r4000

I am going to move to pspdev environment soon though.

The complete source and makefile is in the zip if you want to take a look.
wulf
Posts: 81
Joined: Wed Apr 13, 2005 6:56 pm

Post by wulf »

cool, I'll take a look!
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

RELEASE 0.14

display "Thinking" when thinking of a move

increased default searchdepth to 5

test about moving into check

compile flag changes (removed -g added -O3) - big speed improvements
under pspe - don't know for sure about real psp

switched to pspdev kit with gcc 4.0.0
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

From now on I will be distributing the binaries and the source separately.

Binaries now include a kxploit version as well as the normal EBOOT.PBP for 1.0 psps.

From the changelog:

RELEASE 0.15

split distribution into pspchess.zip (binaries only) and
pspchess_src.zip (with full source)

switched to correct usage of psp-gcc

added KXploit files to makefile and zip

decreased default searchdepth to 4

save/load game - saves to \PSP\GAME\CHESS.SAV - very simplistic
Last edited by cwbowron on Fri Jul 15, 2005 6:41 am, edited 1 time in total.
User avatar
cwbowron
Posts: 76
Joined: Fri May 06, 2005 4:22 am
Location: East Lansing, MI
Contact:

Post by cwbowron »

RELEASE 0.16

fixed bug in save game

darken board when thinking...

automatically load book

switched to pspsdk beta 1.0

end game tests (draw by rep, draw by no material, checkmate, stalemate)
Post Reply