News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMFChess

Started by feeble, November 26, 2006, 07:36:17 PM

Previous topic - Next topic

hvyhitter

Has this been upgraded for the beta version of SMF yet? :( It appears not.. I know I know..)

This chess game is so good at my place its preventing me from upgrading STILL.. ehhh...


Bigguy

Feeble is away at the present moment so we will have to wait for him to return but I must say things are going great with this mod. :)

Lord Anubis

I made a block code for TinyPortal that incorporates all the SMFChess user functions

Screenshot:



Demo:
Live Demo Check out the right block, and click on chess  ;)

Instructions:

1. Download THIS FILE, and unzip the package
2. Upload the folder "chessblock" to the root of your forum
3. Insert the code below into a PHP block
4. Enjoy!


global $scripturl, $context;
echo '

<img src="/chessblock/chess.png"/> <a href="', $scripturl ,'?action=chess">My Chess Stats</a><br />
<img src="/chessblock/challenge.png"/> <a href="', $scripturl ,'?action=chess;u=', $context['user']['id'] ,';sa=challenge">Challenge</a><br />
<img src="/chessblock/matches.png"/> <a href="', $scripturl ,'?action=chess;u=', $context['user']['id'] ,';sa=current">Current Matches</a><br />
<img src="/chessblock/matches.png"/> <a href="', $scripturl ,'?action=chess;u=', $context['user']['id'] ,';sa=finished">Finished Matches</a><br />
<img src="/chessblock/leader.png"/> <a href="', $scripturl ,'?action=chess;u=', $context['user']['id'] ,';sa=leaderboard">Leaderboard</a><br />
';

MinasC

wow , great man , thnx a lot !

Godsongz

Yes Anubis, thanks!  I put it on my TP front page this morning.

Paracelsus

King-Castle is to press the king-queen icons that come below the avatars of each player.

Lord Anubis

I thought people would like that block, it definitely will raise the percentage of members who play chess :)

Glad you guys liked it

feeble

Sorry for my delayed absence. Had a great trip and just took a while to settle back into a rhythm.(Only just started glancing at the tv again)

Quote from: brianjw on December 22, 2007, 01:10:41 PM
What kind of languages are these thing in between the bbc lol

[chess=black]rn!bqk!bn!r/p!pp!pp!ppp/!131!3/8/8/8/PP!PPP!PPP/RNB!QKB!NR[/chess]

[chess]1n!bqk!bn!r/p!pp!pp!ppp/!131!3/8/8/8/PP!PPP!PPP/RNB!QKB!NR[/chess]

There is no way in hell I understand that lol! :)

Basically ! will highlight the next corresponding piece.
Other then that its a basic FEN notation of a chess board

feeble

#488
Couple of things, first off Im going to release the next version tomorrow.

Reason for this is because im getting desperate for feedback :'(
And I was working alot faster with continuous updates

This will also mean that it will only be available for English forums. I'm sorry to do this, and have been trying to avoid it, but the languages files are not done, as I keep adding additional text everyday at the moment.

So what I'll be trying now, is to release a new version everyweek as I was before. Should help speed things up.


Now onto ELO

I've been working on the new ELO rating system, to help beginner players get off 1000 as well as get it more suited for forums.

I'll try and explain (please feel free to question or ask if it doesn't make any sense or you want something changed)

First off, each ELO rating will be adjusted according to the player and not the game itself, meaning that each player will have his own ELO adjusted according to his current ELO to get to his new ELO rating.

This also brings me to Chess Titles as well(just began playing with this)
Giving you a Title depending on your ELO rating.
Beginner, novice, skilled, intermediate, master, grand master etc.
Note: I have been looking for correct titles, but have been unable to find anything as yet, if you know of any? please let me know
(P.S. Titles and requirements will change)

OK here is my poor attempt at displaying this in a table





TitleElo BetweenKAdditional
Beginner <-> Novice1000 - 120032If win, opp elo +400 : if lose, opp elo -400 : New ELO !< 0
Intermediate <-> Skilled1200 - 140016If win, opp elo +100 : if lose, opp elo -100
Skilled <-> Master1400 - 160016
Grand Master1600 +8


for more information on ELO (Explains K variable etc)
http://en.wikipedia.org/wiki/Elo_rating_system

Assistance

#489
maybe you could do provisional, to help the new players get started
most if not all current online board games use this feature

and instead of titles, a small image ( colored circle/square )

-provisional - first 10 games
-0-1199
-1200-1499
-1500-1799
-1800-2099
-2100+

small image would allow for forum webmasters to have their own unique distinction for it representation.
~playing poker~

feeble

Quote from: Assistance on January 12, 2008, 12:50:21 AM
maybe you could do provisional, to help the new players get started
most if not all current online board games use this feature
Ill look into this actually, i like it. My only concern with applying provisional to ELO ratings is that, its not actually a score, but a comparative rating to compare two players and give an estimate on who will win between the two.


Quote from: Assistance on January 12, 2008, 12:50:21 AM
and instead of titles, a small image ( colored circle/square )

-provisional - first 10 games
-0-1199
-1200-1499
-1500-1799
-1800-2099
-2100+

small image would allow for forum webmasters to have their own unique distinction for it representation.

I actually like this as well rather then just having titles. Storing the colors and requirements in a table should be simply enough.

Embrace

Are you not releasing the next version today? :)

Godsongz

Quote from: Embrace on January 12, 2008, 11:02:10 PM
Are you not releasing the next version today? :)

I'm not sure what time zone feeble lives in, but perhaps his "today" hasn't started yet :)

Assistance

provisional player would start with (using my chart above) with a rating of 1200
so the ELO would still apply, just not visible

the reason I suggested the provisional is because no one wants to be unranked
so people will get off those 10 games a lot sooner :)



could u also set up (back end) that admins can set up matches between players
~playing poker~

feeble

#494
Quote from: Embrace on January 12, 2008, 11:02:10 PM
Are you not releasing the next version today? :)
Sorry about that, I live in Sydney. Was posting from work(Air Con is broken, also I'm in the mid of summer. Was swimming in my clothes by the time i got home) O:)

Quote from: Assistance on January 13, 2008, 01:56:04 AM
provisional player would start with (using my chart above) with a rating of 1200
so the ELO would still apply, just not visible

the reason I suggested the provisional is because no one wants to be unranked
so people will get off those 10 games a lot sooner :)
I'll begin working on this soon and put it in, wouldn't mind seeing how it goes and if people like it or not.

EDIT: Forgot to mention, regarding the colours for titles.
I'm planning on using css based colouring and framing. I ran across Sanscons earlier today, and the trick is really neat and I love it. So I think I use something in that fashion. This also means I can used images, without worrying if it will clash with someones theme, as they can just change the colour and problem is solved.

Quote from: Assistance on January 13, 2008, 01:56:04 AM
could u also set up (back end) that admins can set up matches between players
Ive been meaning to do this.
Where would you like it, on the challenge screen? or in the admin area?


Without furture delay thou(been enough of that already), New version is up.
Its not that big of an update really
Mostly just contains
-alot of bug fixes
-doubling clicking should be fixed
-Chess960 Castling issues should be fixed(dont hold me to this thou, but im pretty sure)
-Better Castling - brought back castling with moving the castle. so now you have two ways to castle.
--I'm looking into lightbox scripts to make this look better as well, but thats another thing
-Much for advanced chess tag you can see examples here
-More personal ELO rating, as describe in the above post.
--I'm really interested in how this turns out, so please recount your Chess Results(Found in Chess Admin Maintenance)
Please let me know how this gets on

-Few other things, but ive forgotten as its been awhile since last update&nbsp;&nbsp; ::)



Package is for 1.1.2 and 1.1.3.
If you installed the last package, you will need to uninstall that before going ahead with this version, I've kept the packages the same and version as well, to keep you from doing this.
Download here
Preview Here

Languages: If you do not see your language here, please follow this link
NOTE: LANGUAGE FILES ARE INCOMPLETE AND NOT RECOMMENDED TO BE TRANSLATED AS OF YET
NOTE: As with the main package, these language packs are not final, and will need to be uninstalled at a future date. What this does however, its stop your errors in your forum log regarding missing languages.
German
Thai UTF-8
Croatian UTF-8
Portuguese
Turkish
French

Note: To manually make table changes. Just uploaded the InstallScript.php from chess.zip into your SMF directory and run it through a browser

DWillis

Hrm.  When I installed it it installed in the default theme, not the current theme I was using.  Does this mean in order to put it into another theme other than the default I have to manually install it?

Bigguy

Some manual edits will be required yes.

Paracelsus

Ok, for someone who has installed other MODs after SMFChess, it turns out to be impossible to uninstall it in a simple way to get the updated version.

Is it possible to install it manually by comparing the files in packages of both versions and making the appropriate changes?

feeble

Quote from: Paracelsus on January 15, 2008, 05:33:09 AM
Ok, for someone who has installed other MODs after SMFChess, it turns out to be impossible to uninstall it in a simple way to get the updated version.

Is it possible to install it manually by comparing the files in packages of both versions and making the appropriate changes?
Sorry about this,
The only file (outside of actual chess files) that was changed since the last update was Sources/Subs.php

you can view the file edits here
http://www.leaderless.net/PackageParser/index.php

if you have trouble with this chuck me an email to [email protected]

Paracelsus

Quote from: Feeble on January 15, 2008, 06:20:24 AM
The only file (outside of actual chess files) that was changed since the last update was Sources/Subs.php

you can view the file edits here
http://www.leaderless.net/PackageParser/index.php

Thanks

Advertisement: