Let's see the future

Let's see the future

Jun 27, 2015, 9:47 AM |

If you like to play for your team against other teams keep reading. I made a program that can predict which team will win and by how many points in a team match played here on chess.com. I named it pydamus (as in python and Nostradamus) you can rename it of course and it's free as a free lunch.

Links to pydamus:

pydamus2: https://drive.google.com/file/d/0B1RFUGOMxljlamx0bEJlcnlTN1E/view?usp=sharing

pydamus3: https://drive.google.com/file/d/0B1RFUGOMxljlaENYOGNrSWVfMTQ/view?usp=sharing

How to use it?

Just copy link to the team match into clipboard and run the pydamus2.py or pydamus3.py depending on which version of python interpreter you are using. You can also do partial analysis by selecting some players from lineup, coping them to clipboard and again running prefered version of pydamus.


Let's say we are interested in this game:


All you have to do is copy this entire link to clipboard or 'ctrl + c' and run pydamus. See the picture.


Here I used python 2.7 by typing 'py pydamus.py' because python 2.7 is default interpreter for my computer, then I used python 3.4 by typing 'py -3 pydamu3.py'. If you only have one interpreter installed you can double click the .py file. Just make sure you have correct version of pydamus downloaded. (for Windows users)



You can also partially analyse team matches by coping just the lines you are interested in. You have to select entire lines including the board number. In the case pictured above only three pairs will be evaluated by pydamus.


What do you need?

Python 2.x or Python 3.x (tested on 2.7 and 3.4) and a module called 'pyperclip' for working with clipboard.

If you are using Linux (I like you lets be friends :). You will need python 2 or 3 you probably have it installed already.

These commands are for Ubuntu based systems. If you are using something else, you probably know how to install whatever you need.

For Python3.x you should install:

pip for managing python modules like 'pyperclip' witch is needed by 'pydamus.py'

just type next lines in terminal. (you might need to enter password).

$ sudo apt-get install python3-pip

now you can install pyperclip for reading clipboard content.

$ sudo pip3 install pyperclip

If needed: errors occur when you import pyperclip in python. Something like:

'Exception: Pyperclip requires the xclip or xsel application, or the gtk or PyQt4 module.'

you will have to also install xclip and xsel

$ sudo apt-get install xclip

$ sudo apt-get install xsel

If all went well you can now copy link to the team match that you would like to analyse in clipboard and run pydamus by navigating to the folder that contains pydamus and type:

$ python3 pydamus3.py

For python 2.7 you also need 'pip' and 'pyperclip'

$ sudo apt-get install python-pip

$ sudo pip install pyperclip

If you are using Apple, Spectrum,... I cannot help you. Do as you please.

I you are using Windows You also need Python interpreter and a pyperclip module. Go to:


and select your version. Just take 3.4 if you are new to Python. For installing pyperclip you can open command prompt (type 'cmd' in 'Search for programs and files' box in start menu) navigate to: 'C:\Python34\Scripts' by using 'cd..' and 'cd <folderName>' commands and type 'pip.exe install pyperclip'. If I am not mistaken it is a bit more complicated for Python 2.7 ask google for more info on how to install pyperclip on Python 2.7 I didn't try. See the following picture


If you don't want to be bothered by installing this pyperclip module. You can just download 'pyperclip.py' from:


and just save it in the same folder with pydamus3.py or pydamus2.py. This should work on both versions.

You are encouraged to leave opinions and suggestions. Have fun.