Chess game

Assembler, C/C++ related topics
simon
Site Admin
Posts: 744
Joined: Thu Sep 13, 2012 9:35 am
Location: Luedenscheid, Germany
Contact:

Chess game

Postby simon » Mon Oct 15, 2012 2:33 pm

Hi,

there is a working port of Tom Kerrigan's Simple Chess Program (TSCP) now. Input and output are text-only. I will write a neat graphical frontend later.

Simon

netwar
Posts: 40
Joined: Mon Sep 17, 2012 5:31 am
Location: North Carolina,United States of America

Re: Chess game

Postby netwar » Thu Oct 18, 2012 6:40 am

Thats cool maybe one thing we could get working are old amiga/c64 games or atari? just a thought maybe through some compatability layer/emulation? if this has atleast 256k of ram it could emulate the c64 or c128 no problem.By the title of the webiste "is smart" (took German in Highschool) i'm assuming your German so maybe the ZX spectrum would be something interesting for you to emulate?(then again the zx and c64 were on par for german sales so its a coin toss)

simon
Site Admin
Posts: 744
Joined: Thu Sep 13, 2012 9:35 am
Location: Luedenscheid, Germany
Contact:

Re: Chess game

Postby simon » Thu Oct 18, 2012 12:13 pm

Yes, I thought about games from these platforms. I guess the 68k is not fast enough to emulate these computers. And I like to use Kiwi's capabilities like stereo sound and colorful graphics. As there is a GCC toolchain already I would probably go the way to port existing (Linux) games.
I don't know how difficult it would be to program a SDL port for Kiwi. Or one just steals the in-game logic and writes new routines for all the stuff around it (sound, video, input).

Correct, I am German. :) I assume the Spectrum has been more popular in the UK. Back then I only knew one person with a speccy. All others were playing around with an C64 and later with the Amiga. :)


Simon

netwar
Posts: 40
Joined: Mon Sep 17, 2012 5:31 am
Location: North Carolina,United States of America

Re: Chess game

Postby netwar » Fri Oct 19, 2012 7:53 am

I think porting SDL to it would be less troublesome atleast in the long run anyways and it also gives the end user more flexability to develop their own programs just like the original consoles. I think maybe porting some command line unix/linux games would be cool take a look at bsdgames,Includes all those BBS classics :D

simon
Site Admin
Posts: 744
Joined: Thu Sep 13, 2012 9:35 am
Location: Luedenscheid, Germany
Contact:

Re: Chess game

Postby simon » Sat Oct 20, 2012 9:21 am

I looked into porting SDL as well as a curses library. As there are versions of curses which support SDL it might be the best to port the latter first.

I suppose porting SDL is not as easy as porting newlib. I could not even find a guide of which functions are needed to port. Anyway the video access is probably pretty different to what SDL expects: The framebuffer is only accessable via VDP registers (this could be changed for a next revision) and - which is more important - to be really useful for games, SDL should make use of the VDP tile mode and sprite features. I think every single game has to be ported though to run with the tile mode or just to convert graphics into the correct format.

Simon

Zbigniew
Posts: 8
Joined: Fri Dec 27, 2013 2:12 pm

Re: Chess game

Postby Zbigniew » Fri Dec 27, 2013 3:07 pm

I'm not sure, is porting SDL the way to go. SLD is great, if one's going to write one program for many available platforms. In Kiwi's case we've got one platform, therefore we've got a consistency - then why the (supposed) need for SDL? It's better to use Kiwi's capabilities "old style": by direct access to "bare metal"... by operating the memory and registers directly.

simon
Site Admin
Posts: 744
Joined: Thu Sep 13, 2012 9:35 am
Location: Luedenscheid, Germany
Contact:

Re: Chess game

Postby simon » Sat Dec 28, 2013 10:18 am

HI Zbigniew,

your are completely right. I dismissed the idea of porting SDL. Well, the first idea behind porting SDL was to make use of the many already written programs. But all in all it doesn't make sense for several reasons.

Simon


cron