forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

psp Chess
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Tue May 17, 2005 4:27 am    Post subject: psp Chess Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
cyod



Joined: 29 Apr 2005
Posts: 36

PostPosted: Tue May 17, 2005 6:18 am    Post subject: Reply with quote

Drakonite wrote:
Please keep release announcements in the general forum. Thanks.
Back to top
View user's profile Send private message
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Wed May 18, 2005 6:24 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Thu May 19, 2005 6:15 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
skippy911



Joined: 06 May 2005
Posts: 46

PostPosted: Thu May 19, 2005 6:29 am    Post subject: Reply with quote

Seems to be stuck in an endless loop on my 1.0 psp and wont let me move anything.
Back to top
View user's profile Send private message
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Thu May 19, 2005 7:30 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message Visit poster's website
skippy911



Joined: 06 May 2005
Posts: 46

PostPosted: Thu May 19, 2005 7:46 am    Post subject: Reply with quote

Loaded about 80 books.
Back to top
View user's profile Send private message
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Thu May 19, 2005 8:36 am    Post subject: Reply with quote

skippy911 wrote:
Loaded about 80 books.


Thanks.
Back to top
View user's profile Send private message Visit poster's website
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Mon May 23, 2005 4:38 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Guest






PostPosted: Mon May 23, 2005 4:50 am    Post subject: Reply with quote

We got software discussion topic now, so throwing it there...
Back to top
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Tue May 24, 2005 5:55 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
emumaniac



Joined: 08 May 2005
Posts: 79

PostPosted: Tue May 24, 2005 6:16 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Tue May 24, 2005 6:28 am    Post subject: Reply with quote

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...
Back to top
View user's profile Send private message Visit poster's website
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Thu May 26, 2005 5:05 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Visit poster's website
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Sat May 28, 2005 6:04 am    Post subject: Reply with quote

RELEASE 0.06

print out best line during search

switched to elf2pbp which will now use the correct icon during build
Back to top
View user's profile Send private message Visit poster's website
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Thu Jun 02, 2005 3:36 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
emumaniac



Joined: 08 May 2005
Posts: 79

PostPosted: Thu Jun 02, 2005 5:55 am    Post subject: Reply with quote

awesome release mirror page updated too http://psp-news.dcemu.co.uk/pspchess.shtml
Back to top
View user's profile Send private message
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Wed Jun 08, 2005 10:45 am    Post subject: Reply with quote

RELEASE 0.08

new images - thanks to Stadi Thompson

changed key processing code

Screenshot:
Back to top
View user's profile Send private message Visit poster's website
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Fri Jun 10, 2005 2:29 am    Post subject: Reply with quote

RELEASE 0.09

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

display transposition table hit info during search
Back to top
View user's profile Send private message Visit poster's website
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Sat Jun 11, 2005 6:29 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
emumaniac



Joined: 08 May 2005
Posts: 79

PostPosted: Sat Jun 11, 2005 7:38 am    Post subject: Reply with quote

great release mirror page updated at http://psp-news.dcemu.co.uk/pspchess.shtml
Back to top
View user's profile Send private message
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Tue Jun 14, 2005 5:58 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Visit poster's website
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Fri Jun 17, 2005 6:50 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Visit poster's website
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Sat Jun 18, 2005 6:05 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
wulf



Joined: 13 Apr 2005
Posts: 81

PostPosted: Sat Jun 18, 2005 8:24 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Sat Jun 18, 2005 9:58 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
wulf



Joined: 13 Apr 2005
Posts: 81

PostPosted: Sat Jun 18, 2005 10:06 am    Post subject: Reply with quote

cool, I'll take a look!
Back to top
View user's profile Send private message
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Tue Jun 21, 2005 12:07 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Thu Jun 23, 2005 3:22 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
cwbowron



Joined: 06 May 2005
Posts: 76
Location: East Lansing, MI

PostPosted: Sat Jul 02, 2005 7:12 am    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group