C H E S S
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

C H E S S

Started by c h i l l a, 11 February, 2004, 12:22:58

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


DJ Bert

It's nice Chilla, maybe you put this for the users to see command in bot description something like that

RasChessinfo = "$MyINFO $ALL "..sBotName.." type +start to play $"
  :)







c h i l l a

yepp, there is still more to do, thanks...
but dunno, the grafix actually suck.

NightLitch

great bot, but how do I start it... I tried the command
I spotted in bot but It don't work... do a help.

I suck at this.... :-D LOL
//NL

c h i l l a

hmm... well,  it should work, like this

type in a Pm to the bot,

invite

then you should see a field and your other user if online as well, to now move the figs you need to type

start - end  e.g   A1 - B1

night_hawk

what are all the comands to the chess game exp. loging in and logout and to move the peaces am still very new to all of this.. and i have users that like to play chess...thank you for your time.....

c h i l l a

1. Added Kings special move to func: doCheckPosessions()
2. Added Pawns special move to func: Moves.Pawn()
3. Added changing Pawn to Queen when reaching other side to func: moveFigure()
4. Added setting of King and Castles if already moved to func: doCheckPosessions()


to come:

- Game commands, as quit, and so on.
- Chat.
- Checking for Check, and Check Mate.
- Hoping to find better ways to draw the board, would be cool if you can give some suggestions.

commands till now.
PM to the bot

invite nick

move figure.

e.g.  B1 - C1     moves pawn one down.

Ras Chess V.004

NightLitch

Error message by just doing: invite kex(user)

Syntax error: attempt to index field `KingMove' (a nil value)
stack traceback:
   1:  function `CreateChessGame' at line 158 [file `C:\PtokaX\scripts\chess.v.004.lua']
   2:  function `StartGame' at line 84 [file `C:\PtokaX\scripts\chess.v.004.lua']
   3:  function <38:file `C:\PtokaX\scripts\chess.v.004.lua'> at line 41
   4:  function `DataArrival' at line 24 [file `C:\PtokaX\scripts\chess.v.004.lua']
//NL

night_hawk

hi what are the commands for the game to make it run...
i am new at this sorry for being a bug

night_hawk

hi what are the commands for the game to make it run...
i am new at this sorry for being a bug

c h i l l a

#10
thanks nightlitch.. bug fixed...

well still very beta, but will become better till V.010, and still no checking if someone has won, only if someone is in check.


Ras Chess V.007

commands are PM to the bot,

invite

????K??????

g8 bot but is there a way to make the table better it is very wonky, do i need to play it in a different font or somit?


thanx kizz :)
Founder/Owner
                         Of  
   ????? ?????? ? ???W??k? ?????

c h i l l a

yepp best fonts are

--   Courier
--   Courier New
--   Fixedsys
--   Lucida Console
--   MS Mincho
--   OCR A Extended
--   SimSun
--   TeleText   
--   TeleTextDH
--   Terminal
--   WST

and maybe some more dunno.

c h i l l a

#13
:P  :P  :P

its done,

First Chess Bot on the DC network for Ptokax Hubs, since Ptokax has the best functions for LUA. :)

Just to show how easy it is to create a full functional chess bot with LUA.

Checks for CORRECT MOVE.
Checks for CHECK.
Checks for CHECKMATE.

Allows chatting while playing.
Also sends $UserCommand  for dc++, when you connect.

LUA is just great.

Ras Chess V.008

night_hawk

how do i make the pices move around the board ty:P

c h i l l a

heya :)

well simple type

start - end

e.g.

A2 - C1


moves horse from A2 - C1 you'll get it...

and if you use dc++ then check the users menue (right klick) and got to -RasChess- and then on Display Help

HaL

wow
i never tought that it was possible to build a chess bot
but chilla did it :-)

great work chilla

c h i l l a

hehe, thx :) wasn't too hard after all, good that I first made tic tac toe and connectX, learned quite a lot from them.

yepyepyep4711

hi guys, would love to use this script, but chilla's site seems to be down. Could anyone post it here?

thx and cheers

chill


yepyepyep4711

that's the bugger :D. plop was faster but thanx a lot anyway. Awesome script btw.

cheers

UwV?

#21
1st off all..
 I love the script .. !!

but i have ran into a problem i thnk ..
hope i am the only one .. but here i go .. (ascii ripped)

[12:42] invite tropic
[12:42] <-Chessy->
    WHITE beginns. Type "quit" to abort the game.
[12:42] <-Chessy->
   uwverlosser moves Pawn from E2 to E4.
[12:44] doorbell...
[12:44] <-Chessy->
   tropic moves Pawn from G7 to G5.
[12:44] lol
[12:50] you here bro
[12:50] ?
[13:25] <-Chessy->
   uwverlosser moves Pawn from D2 to D3.
[13:25] .. back ;0)
[13:26] ok
[13:27] lol
[13:27] <-Chessy->
   tropic moves Bishop from F8 to G7.
[13:28] <-Chessy->
   uwverlosser moves Bishop from C1 to G5.
   Bishop beats Pawn

etc. etc. etc.


-------------             Many many  moves later...       -------------------  

---------------------------------- the problem ---------------------------------
[15:01] <-Chessy->
   tropic moves Pawn from B3 to B2 .[------COLOR=green]  here the ascii still shows pawn in D2 and no queen in D1[/COLOR] [/COLOR] ...but then
                                                                       
[15:03] <-Chessy->
   uwverlosser moves Queen from B8 to F8  .
   UwVerlosser sets tropic to CHECK.       ----- here  it goes wrong ... the ascii still shows the pawn in D2 (where it is supposed to be) but also a Queen in D1.. ?
[15:04] you get a queen (without to move your pawn ??) ..
[15:04] & the pawn don't dissapear ..
[15:04] i know lol
[15:04] lol
[15:04] .. try move it in next turn .. lol
[15:05] i see
[15:05] ?

[15:05] <-Chessy->
   tropic moves King from F7 to E6.
   tropic sets uwverlosser to CHECK.

[15:05] <-Chessy->
   uwverlosser moves King from D3 to E2.

[15:05] ok
[15:06] or move another piece to that field .. (d2) ..
[15:06] i have to know what happens ..
[15:06] ?
[15:06] it dont move
[15:06] good sign :0)
[15:06] ?
[15:06]  i hope it only forgets to "erase" the ascii
[15:07] i move queen ok see what happenes
[15:07] can you move a piece on to that spot ?
[15:07] no
[15:07] grrrrrr !!!
[15:07] i try move queen maby pawn go by by
[15:07] that's what i ask ..
[15:08] can you move the queen on to that field if not, Can you move the Queen at all ?
[15:08] try..  b1 - b2
[15:09] is possible ?
[15:09]  no
 
[15:10] <-Chessy->

   tropic moves Queen from B1 to E4 .
   tropic sets uwverlosser to CHECK. --- strange because the pawn never moved to B1..
[15:10] duh
[15:10] sure ..
[15:10] but is a problem ..
[15:11] now i try to move pawn
[15:11] the b2 stay's "possesed " and your pawns is still there .. so...   oh.. oh.. ..
[15:12]  move maby now it will move
[15:12] nope ..
[15:12] i have read the script, if i understand well  if it does not do it now it won't do it..(it should erase the piece and give free the possesion of the field)

[15:14] <-Chessy->
   uwverlosser moves King from E2 to D2.   -- now here black automaticly gets a second Queen .. (from the same Pawn wich is still there ...)
[15:15] now i have 2 queens kool
[15:15] lol
[15:15] ...  you see .. very kool .. but a bit of a error .. lol

[15:16] <-Chessy->
   tropic moves Queen from B1 to C1.
   tropic sets uwverlosser to CHECK. --    so that proves that the 2nd Queen was really there (and still the pawn never moved) ...,   + here it is actually checkmate ... not check .. :0(

[15:16] is crazy 2 queens jajajajaja
[15:17]  .. make three .. ;0)
[15:17] lol
[15:17]  is crazy all come out queens lol
[15:17] 3 against one  lets see how cheak mate goes
[15:17] move king
[15:17] it is just.. i can't move the king anywhere ..
[15:18] cheak mate
[15:19] is cheack mate
[15:19]  cant move the king
[15:19]  why dont game stop?
[15:20] strange ..
[15:20] buggy script ..
[15:20] lol
[15:20] or at least not totally finished ..
[15:20] will ask help on it ..
[15:20]  ok well game is over is vcoming good i like
[15:20] is fun
[15:20]  your a super Uw
[15:21]  type quit..
[15:21]  is a plesure to play aginst you
[15:21] =)
[15:21] quit

[15:21] <-Chessy-> tropic has quit the game.

---------------------&  the ptokax debug message ----------
Syntax error: attempt to compare number with nil
stack traceback:
   1:  function <849:file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua'> at line 888
   2:  function `doCheckCheck' at line 814 [file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua']
   3:  function `doCheckPosessions' at line 632 [file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua']
   4:  function `doCheckCheckMate' at line 758 [file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua']
   5:  function `doCheckPosessions' at line 647 [file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua']
   6:  function `ParseData' at line 247 [file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua']
   7:  function `DataArrival' at line 40 [file `C:\DSN-RedDwarf-17\scripts\RasChess.V.009.lua']
----------------------------------------------------------------


hope this is clear enough ..  

GREAT SCRIPT i really do love it .. :0)
we really where having big fun thankx ..  ..  :D

p.s. is possible to get a choice of piece when a pawn reaches opposite side (even if only the Horse)?

keep up the good spirit :)
Music = Love
                              &
                   plop rulez
                          (feed [en]danger[ed][ous] things so they will grow!!)  

chill

#22
well UwV? thx for the info, but this script is quite complex, so I guess there will still be some errors in it, including that one.

Versions befor this one I had a game where figures just disappeared randomly, well it took me some time to find the error, but I had to see what the script does on each move, till I finally found it, so I guess I won't be able to solve this problem, but you may be lucky when the next release is finished, cause I know about the error, its the checkforcheckmate function when ones king has dissappeared, or something like that, I will add the option of choosing a figure when reached the other side, plus some other stuff, in next release.

cya.

UwV?

#23
yep ..  
the checkforcheckmate is a old one .. i remember it .. i've been trying to play since...   chess.v.003.lua

I just thought that that pawn not even having to move and the new queen (able to move without the pawn ever moving and so keeps on gettin new queens) was new ...

can't wait for the next version ,,,

now the sport is to actualy finish a game of chess
 .. ;0)


(i understand..  it is a complicated script .. i have no comments, only respect for your efforts in this one )
Music = Love
                              &
                   plop rulez
                          (feed [en]danger[ed][ous] things so they will grow!!)  

chill

#24
download link

raschess v 010

this is whats new


V.010 :
 - Game is now really local as 'curgame'.thx to RabidWombat for helping me, how to properly create a copy of an table.
 - optimised function 'doCheckPossesions',
       hirarchy:
             'doCheckPosessions'
                 'doCheckGame'
                  and from there check for possible game states.
 - Chaged function Move figs to move mutiple moves.
 - Added showing of wrong moves.
 - Added back function to undo last move.
 - Added option to pick a figure when pawn reaches other side, on move type  From - To Figure, e.g. H2 - H1 Bishop

SMF spam blocked by CleanTalk