C H E S S - Page 2
 

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.

UwV?

#25
thanks
great :0)
will try  right away .. :P
Music = Love
                              &
                   plop rulez
                          (feed [en]danger[ed][ous] things so they will grow!!)  

chessirechat

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

cheers
hi

UwV?

#27
[03:39] <-RasChess->
         [ UwV ]  -  WHITE
         [ chessirechat ]  -  BLACK

[03:39] <-RasChess-> WHITE beginns. Type "quit" to abort the game.

[03:40] e2 - e4

[03:40] <-RasChess->     uwv moves Pawn from E2 to E4.

[03:40] game on .. ;0)
[03:40] ok
[03:41] lucky the 'DrawBoard' function wasn't changed .. so i could use my edited one :0)
 [03:42] <-RasChess->

   chessirechat moves Pawn from E7 to E5.

[03:43] here we go!!!!
[03:43] g1 - f3

[03:43] <-RasChess->

   uwv moves Horse from G1 to F3.

[03:45] <-RasChess->

   chessirechat moves Horse from G8 to F6.

[03:45] <-RasChess->

   uwv moves Pawn from D2 to D4.

[03:47] <-RasChess->

   chessirechat moves Pawn from E5 to D4.
   Pawn beats Pawn

[03:48] <-RasChess->

   uwv moves Queen from D1 to D4.
   Queen beats Pawn

[03:49] back
[03:49] ;0)
[03:49] had to try once .. ;0)
[03:50] d1 - d4

[03:50] <-RasChess->

   uwv moves Queen from D1 to D4.
   Queen beats Pawn

[03:50] <-RasChess->

   chessirechat moves Pawn from D7 to D6.


[03:51] <-RasChess->

   uwv moves Bishop from F1 to B5.
   UwV sets chessirechat to CHECKMATE.


[03:51] ;0)
[03:51] not really huh ?
[03:53] c8 - d6
[03:53] no checkmate dude
[03:53] this is ur load chess
[03:53] right ..
[03:53] is not checkmate ..
[03:54]  e8 - e7 is possible 2
[03:54] the pieaces r loaded like dice of casinos in las vegas
[03:54] hehe
[03:54] try move ..
[03:55] my turn?
[03:55] yes ..
[03:55] all along ..
[03:55] i move the biship
[03:55] nope ..
[03:56] didn't move yet ..
[03:56] c8 - d7
[03:56] damn ..
[03:56] sorry men i move d6
[03:56] oops!
[03:56] the script really think is checkmate .. bummer .. :0(
[03:57] hehehe i ur load chess
[03:57] uw always wins
[03:57] hehe
[03:57] impossible to move?
[03:58] the game is over!

Quote lucky the 'DrawBoard' function wasn't changed .. so i could use my edited one :0)
i have done a little editing in that function and changed the pieces in the figs tables to suit my hubusers .. it now lines out perfectly in microsoft sans serif size 8 ... will post if anyone wants em ..  ?(
Music = Love
                              &
                   plop rulez
                          (feed [en]danger[ed][ous] things so they will grow!!)  

chill

fixed it,

<-RasChess->

   test1 moves Bishop from F1 to B5.
   test1 sets chillo to CHECK.


 it was a mistake, and sure post your version of drawboard, I'll add it, as option, depneding what font people use, I like to work with these text style, they just come in more handy when drawing boards and stuff like that.



V 010

UwV?

Quoteand sure post your version of drawboard,
[SIZE=1]
-------------------------------------
--	Draw Board (edited by UwVerlosser) 
-------------------------------------
function DrawBoard(table,nick1,nick2)
	local line5 = strrep(" ",5)
	local ChessBoard = "\r\n\t\t\t\t\t[ "..nick1.." ]  -  WHITE\r\n\r\n\t"..strrep(" ",5).. "'" 
	for i = 1,8 do
		ChessBoard = ChessBoard..strrep(" ",10)..drawt[i]..strrep(" ",10).. "'"
	end

	ChessBoard = ChessBoard.."\r\n\t"..strrep(" ",7)..strrep("_",91)
	for i = 1,8,2 do
		
		--Draw Begining with Black
		ChessBoard = ChessBoard.."\r\n\t"..strrep(" ",6)..strchar(166)..strchar(166)
		for _ = 1,8 do
			ChessBoard = ChessBoard..strrep("?",11)..strchar(166)
		end
		ChessBoard = ChessBoard..strchar(166) 	
		for i2 = 1,4 do
			if (i2 == 2) then
				ChessBoard = ChessBoard.."\r\n\t"..i..strrep(" ",4)..strchar(166)..strchar(166) 
			else
				ChessBoard = ChessBoard.."\r\n\t"..strrep(" ",6)..strchar(166)..strchar(166)
			end
			for i3 = 1,8,2 do
				ChessBoard = ChessBoard.."?? "..GetFigsString(table[i..i3].ftype,i2,"B").." ??"..strchar(166).."     "..GetFigsString(table[i..(i3+1)].ftype,i2,"W").."     "..strchar(166)
			end
			ChessBoard = ChessBoard..strchar(166)
			if (i2 == 2) then
				ChessBoard = ChessBoard..strrep(" ",5)..i 	
			end
		end

		--Draw Begining with White
		ChessBoard = ChessBoard.."\r\n\t"..strrep(" ",6)..strchar(166)..strchar(166)
		for _ = 1,8 do
			ChessBoard = ChessBoard..strrep("?",11)..strchar(166) 
		end
		ChessBoard = ChessBoard..strchar(166) 	
		for i2 = 1,4 do
			if (i2 == 2) then
				ChessBoard = ChessBoard.."\r\n\t"..(i+1)..strrep(" ",4)..strchar(166)..strchar(166)
			else
				ChessBoard = ChessBoard.."\r\n\t"..strrep(" ",6)..strchar(166)..strchar(166)
			end
			for i3 = 1,8,2 do
				ChessBoard = ChessBoard.."     "..GetFigsString(table[(i+1)..i3].ftype,i2,"W").."     "..strchar(166).."?? "..GetFigsString(table[(i+1)..(i3+1)].ftype,i2,"B").." ??"..strchar(166) 
			end
			ChessBoard = ChessBoard..strchar(166)	
			if (i2 == 2) then
				ChessBoard = ChessBoard..strrep(" ",5)..(i+1) 
			end
		end

	end
	ChessBoard = ChessBoard.."\r\n\t"..strrep(" ",6)..strchar(166)..strchar(166)
	for _ = 1,8 do
		ChessBoard = ChessBoard..strrep("?",11)..strchar(166)
	end
	ChessBoard = ChessBoard..strchar(166).."\r\n\t"..strrep(" ",7)..strrep("?",91)

	ChessBoard = ChessBoard.."\r\n\r\n\t"..strrep(" ",5).. "'" 
	for i = 1,8 do
		ChessBoard = ChessBoard..strrep(" ",10)..drawt[i]..strrep(" ",10).. "'"
	end
	ChessBoard = ChessBoard.."\r\n\r\n\t\t\t\t\t[ "..nick2.." ]  -  BLACK\r\n"	
	return(ChessBoard)
end
function GetFigsString(fig,num,cfield)
	if (fig[2] == "W") then
		return WhiteFigs[fig[1]][num]
	elseif (fig[2] == "B") then
		return BlackFigs[fig[1]][num]
	end
	if (cfield == "W") then
		return ("            ")
	elseif (cfield == "B") then
		return ("??????")
	end
end
drawt = {
	[1] = "H",
	[2] = "G",
	[3] = "F",
	[4] = "E",
	[5] = "D",
	[6] = "C",
	[7] = "B",
	[8] = "A",
}
--------------------------------------[/SIZE]
and then there is the "figs table to go with that ..
                  ( RasChessFigs.txt )
[SIZE=1]--Figs by UwV to go with the draw function. (for dark background & light font)
--Size of Figs :7x4

--Table With White Figs
WhiteFigs = {}

WhiteFigs.Pawn = {}
WhiteFigs.Pawn[1] =	"    _._   "
WhiteFigs.Pawn[2] =	"    (-'')'   "
WhiteFigs.Pawn[3] =	"  ?/?\\   "
WhiteFigs.Pawn[4] =	"  (???)  "

WhiteFigs.Castle = {}
WhiteFigs.Castle[1] =	" X?X?X"
WhiteFigs.Castle[2] =	"  ???'??  "
WhiteFigs.Castle[3] =	"  ??'???  "
WhiteFigs.Castle[4] =	" ???'??? "

WhiteFigs.Horse = {}
WhiteFigs.Horse[1] =	"  __.,,..,"
WhiteFigs.Horse[2] =	" (_ ?    )"
WhiteFigs.Horse[3] =	"  _/??I''"
WhiteFigs.Horse[4] =	"/? H ?\\"

WhiteFigs.Bishop = {}
WhiteFigs.Bishop[1] =	"  _?'?_  "
WhiteFigs.Bishop[2] =	"  \\?'?/  "
WhiteFigs.Bishop[3] =	"    (?)    "
WhiteFigs.Bishop[4] =	"  (???)  "

WhiteFigs.Queen = {}
WhiteFigs.Queen[1] =	"   /iiii\\   "
WhiteFigs.Queen[2] =	"    (?)    "
WhiteFigs.Queen[3] =	"  /Q?\\  "
WhiteFigs.Queen[4] =	"/??'??\\"

WhiteFigs.King = {}
WhiteFigs.King[1] =	"  _/'\\_  "
WhiteFigs.King[2] =	"  \\?'?/  "
WhiteFigs.King[3] =	"   ('K?)  "
WhiteFigs.King[4] =	" (????) "

--Table With Black Figs


BlackFigs = {}

BlackFigs.Pawn = {}
BlackFigs.Pawn[1] =	"   .__.   "
BlackFigs.Pawn[2] =	"   '(''-)    "
BlackFigs.Pawn[3] =	"   /  \\?  "
BlackFigs.Pawn[4] =	"  (___)  "

BlackFigs.Castle = {}
BlackFigs.Castle[1] =	" X?X?X"
BlackFigs.Castle[2] =	"  ?    ' ?  "
BlackFigs.Castle[3] =	"  ?  '   ?  "
BlackFigs.Castle[4] =	" ?__?__? "

BlackFigs.Horse = {}
BlackFigs.Horse[1] =	" .,,..,__ "
BlackFigs.Horse[2] =	"///  ?_)"
BlackFigs.Horse[3] =	"  I   ''\\_ "
BlackFigs.Horse[4] =	" /  H   \\"

BlackFigs.Bishop = {}
BlackFigs.Bishop[1] =	"  _?'?_  "
BlackFigs.Bishop[2] =	"  \\_'_/  "
BlackFigs.Bishop[3] =	"    (_)    "
BlackFigs.Bishop[4] =	"  (___)  "

BlackFigs.Queen = {}
BlackFigs.Queen[1] =	"   /iiii\\   "
BlackFigs.Queen[2] =	"    (  )    "
BlackFigs.Queen[3] =	"  / Q \\  "
BlackFigs.Queen[4] =	"/__'__\\"

BlackFigs.King = {}
BlackFigs.King[1] =	"  _/'\\_  "
BlackFigs.King[2] =	"  \\''  ''/  "
BlackFigs.King[3] =	"   (''K'')  "
BlackFigs.King[4] =	" (____) "
[/SIZE]

hoping to be of more creative use for a change ..
          after all my bug & error-reporting    ..    ;0)
Music = Love
                              &
                   plop rulez
                          (feed [en]danger[ed][ous] things so they will grow!!)  

chill

yeah thx, will add it,

and thx for the errors also, helps me a lot to get on with this script.

chill

UwV? I added your font,

simple type when playing a game

font SansSerif

to switch to SansSerif font

and type

font

to switch back

RasChess V 011

UwV?

great .. :0)

..but yet again... another request

could we maybe get the saved games not to be deleted after loading ? .. but to have to be manualy deleted and or over written ? ..

we lost a good game because we didn't think quiting would matter since we just saved 1 move before ..

so i checked .. and after loading a game .. no more saved game in the folder .. .. :0(

a command to delete saves  would be usefull actually .. ;0)
Music = Love
                              &
                   plop rulez
                          (feed [en]danger[ed][ous] things so they will grow!!)  

Cp6uja

H!!!

good script

chill

thx, there is still some more to come, when I got some time, and UwV?'s requests also.

sacapusse

chilla...first of all i must tell you...excellent bot !!

am i doing something wrong......either user can put the other in check : (....they are legal moves.

any ideas ?

UwV

keep up the good work ... hopefully you are back on-line soon  ...
sacapusse ..
if ...  
Quoteam i doing something wrong......either user can put the other in check : (....they are legal moves.
either player can put the other check with a legal move .. that is good ain't it ?? ..
guess you mean Neither player ? ... ;0)
and maybe like tell posistion of the pieces if you want an answer .. would really help to re-create the specific  situation and try sort that out .. (whenever chill is back)
\NL   The knowledge and skills you have achieved are meant to be forgotten so you can float comfortably in emptiness, without obstruction.
" Holly loves me,...  . "      ;o)

& don't forget, the motto is :
  -- SUPPORT YOUR LOCAL DJ'S --

sacapusse

#37
thx UwV...i noticed after i posted ...lol

Yeah that's what i meant...neither player can put the other in check.

It's in any situation ..but here's an example..

My queen (in D1) has a clear path to A4...which would put the opponent in check, because his pawn is moved from D7 -D6. BUT the bot won't let me do it.

It will move it to B3 or any where else that's legal, but it won't let me put the other in check : (

So we kept playing and after a few moves, my opponent couldn't put me in check neither. (can't remember the specifics of that one)

So that's my situation, if any one can help, i'd appreciate it : )

odyny

well.....i have some problens whith the commands....
the help comand dont work......right....i can use the right click..........

when i type the comand to move without a movement... i think one little help like these will be interesting:
*** Syntax error: no nick specified. (Usage: !getinfo ) No parameter given.
so when some one type the incomplete command....it appear =]

chill

I am writing a version of this bot for bcdc, what is better I think, then the hub's cpu is not used and files and stuff are saved local.
So I hope I can bring the new version out soon, with
some more help.

UwV

although me i run my bcdc on the same pc as my hub ..  yes i think it could be better indeed..
let me know when it is there for testing :0)
\NL   The knowledge and skills you have achieved are meant to be forgotten so you can float comfortably in emptiness, without obstruction.
" Holly loves me,...  . "      ;o)

& don't forget, the motto is :
  -- SUPPORT YOUR LOCAL DJ'S --

chill

good to know you also think of it that way, I am working on it, but till now I only see a board, and can't do anything else, so I still need some time, but I hope first version for you to test will be out sooon :).

chill

First step is finished,
got still some stuff to do, and maybe someone can help me in fetching outgoing data to the hub in a PM,
till now I did it a other way, but maybe someone knows,

check it out :)

RAsChess for BCDC


Install:
add this line into startup.lua

dofile( "scripts/RasChess.BCDC.V.001.lua" )

install the package into the scripts folder.

start BCDC, connect to a hub and type /chess help

type

/chess invite

 to invite a person

ALL IN MAIN

UwV

sorry for late response ...
due to some other running bcdc scripts (i guess)
 this one won't do anything for me really... and i can't do without em .. ;0)
so not testing here .. srry.. :(
\NL   The knowledge and skills you have achieved are meant to be forgotten so you can float comfortably in emptiness, without obstruction.
" Holly loves me,...  . "      ;o)

& don't forget, the motto is :
  -- SUPPORT YOUR LOCAL DJ'S --

BeeR

I cannot get this chessscript working properly in DcDm ,,
It starts and the board shows in a PM but thats it ,,
No moves working ,, maybe my fault :]
A cold BeeR is stunning !!

chill

hi UwV,
well thats bad to hear, but no problem, will fix the problem,
all your other scripts work fine when running at the same time? and they also take commands through MainChat?

And Beer,
I haven't tested the script with DcDm, do you want to give me the downloadlink for DcDm?
Otherwise, in BCDC to make a move you need to type in "MAINCHAT" something like

/chess Move

e.g. (if playing with me)

/chess chill A2 - A3

BeeR

QuoteOriginally posted by chill
hi UwV,
well thats bad to hear, but no problem, will fix the problem,
all your other scripts work fine when running at the same time? and they also take commands through MainChat?

And Beer,
I haven't tested the script with DcDm, do you want to give me the downloadlink for DcDm?
Otherwise, in BCDC to make a move you need to type in "MAINCHAT" something like

/chess Move

e.g. (if playing with me)

/chess chill A2 - A3

Yes,, i know the commands for your script :>
I also got disconnected when i use the rightclick to start a game..

The link to DcDm -->  http://www.ukdnb.dsl.pipex.com/dcpluspluskcdm/
A cold BeeR is stunning !!

UwV

#47
upgraded to v3
( and got a m8to install the in his dcdm aswell )

nice very, very, nice ..
but can't seem to play as "third party" user ..

i mean seems like only the client running the script can invite people to play ? ..
or am i messing up here ?..
   p.s. running the script on DCDM++
\NL   The knowledge and skills you have achieved are meant to be forgotten so you can float comfortably in emptiness, without obstruction.
" Holly loves me,...  . "      ;o)

& don't forget, the motto is :
  -- SUPPORT YOUR LOCAL DJ'S --

chill

great UvW that you got it running,
and yepp only the one who has the script installed may invite someone, this is because who should know if someone is running this script.

I tried with DCDM++ and couldn't get it to work in any ways, didn't think the clients where so different,
well it works when restarting the script but it won't when you normal start the client.

well I'll check it out. Any bugs so far, or suggestions so far?

UwV

#49
thoughts:
... i think ican make my onjoin.lua .. sayi something like ..

Hi rasschesbcdc enabled ? ...
         list of commands
(now it sends a hi this is the releasebot)
i could set my client to have it as description ...
or just have a "sidescript" sending a pm from my hub ..

All the users will know there is chess .. ;0)

also possble to send a timed message to main ... with the mytimer.lua ..

(mentioned .lua are standard packed with dcdm  by now and easy enough to edit to suit my needs or anybody's..

suggestions ?
make all able to invite :0)

question:
the bottom thingy under the chessboard,.. shows both my nick and the invited nick's .. (supposed to ?)

example ..
[14:07:40] <-=Holly-Book=-> Hi there !     Welcome to the hub :)
------------------------------------------------------------------------------------------------------------------------------------------
     This is the "Chess"-bot
     Available commands for all users are
       +rls     - Shows you the latest releases.
       !read typE    Will show all releases of that ''typE'' only.
        (possible ''typE's'' : DSN, music, psy/goa, chill, techno, lounge, electro,
           musicvid, new, and  tool
        e.g.: !read DSN     (will show you all the "DSN specials")
------------------------------------------------------------------------------------------------------------------------------------------


P.S.

i made no changes to your script .. but in my case it seems to work fine on startup .. but not after restart   :rolleyes: .. (dcdm++)
\NL   The knowledge and skills you have achieved are meant to be forgotten so you can float comfortably in emptiness, without obstruction.
" Holly loves me,...  . "      ;o)

& don't forget, the motto is :
  -- SUPPORT YOUR LOCAL DJ'S --

SMF spam blocked by CleanTalk