Code Monkey home page Code Monkey logo

jupiter's Introduction

Jupiter

Build Status
codecov

                        = =
           ........  =    =
         ............   =
        ..............=
        .......... =..
      = ........=.....
    =    ...=........
   =     = ........
   =  =     \..../
            ------
             |  |
             |  |
             |  |
             |  |
            /    \
          (________)        JUPITER CHESS

Jupiter is an UCI-compatible chess engine for Linux.

You can use it with any User Interface that support UCI protocol, like:
- pychess (http://www.pychess.org/)
- scid (http://scid.sourceforge.net/)

Files

* **engine**: Engine source files
* **tests**: Engine tests source files
* **fics**: Script and files to play online
* config: Engine configuration file.    

Build and run engine

  • make -C engine/
  • engine/jupiter

Build and run tests

  • make -C tests/
  • tests/jupitests

Configuration File

You can edit this file to change some options.

Logging Level

Log level can be DEBUG, INFO or ERROR. It's set to INFO by default.

LOG_LEVEL = INFO

Logging File

By default the engine will log to ./jupiter.log

LOG_FILE = jupiter.log

Play online on FICS

You can find jupiter on FICS as JupiterCallisto, so go and play some games against him.

Also, you can connect jupiter, or other chess engine using fics/callipsto.py script. fics/callipsto.py will connect to FICS as guest, and plays random games. Games are saved as .pgn files.

fics/callisto.py --help
usage: callisto.py [-h] [-u USER] [-p PASSWORD] [-e ENGINE]

optional arguments:
  -h, --help            show this help message and exit
  -u USER, --user USER  FICS username
  -p PASSWORD, --password PASSWORD
                        FICS password
  -e ENGINE, --engine ENGINE
                        Engine binary file

jupiter's People

Contributors

maralonso avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

jupiter's Issues

Do not find mate in one

[White "Jupiter"]
[Black "gigixy"]
[Date "2020,05,28"]
[Site "FICS"]

1. Nc3 d5 2. e3 d4 3. exd4 Qxd4 4. Nf3 Qg4 5. Ne5 Qe6 6. Bb5 Bd7 7. Qe2 f6 8. Nxd7 Nxd7 9. Qxe6 c6 10. Be2 Rd8 11. d4 c5 12. dxc5 Nxc5 13. Bb5 Nd7 14. Be3 Nh6 15. Bxa7 Nf7 16. Bb6 Nd6 17. Bxd8 Nxb5 18. Nxb5 Kxd8 19. O-O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1 105. Qg4 Kh1 106. Qd4 Kg1 107. Qg4 Kh1 108. Qd4 Kg1 109. Qg4 Kh1 110. Qd4 Kg1 111. Qg4 Kh1 112. Qd4 Kg1 113. Qg4 Kh1 114. Qd4 Kg1 115. Qg4 Kh1 116. Qd4 Kg1 117. Qg4 Kh1 118. Qd4 Kg1 119. Qg4 Kh1 120. Qd4 Kg1 121. Qg4 Kh1 122. Qd4 Kg1 123. Qg4 Kh1 124. Qd4 Kg1 125. Qg4 Kh1 126. Qd4 Kg1 127. Qg4 Kh1 128. Qd4 Kg1 129. Qg4 Kh1 130. Qd4 Kg1 131. Qg4 Kh1 132. Qd4 Kg1 133. Qg4 Kh1 134. Qd4 Kg1 135. Qg4 Kh1 136. Qd4 Kg1 137. Qg4 Kh1 138. Qd4 Kg1 139. Qg4 Kh1 140. Qd4 Kg1 141. Qg4 Kh1 142. Qd4 Kg1 143. Qg4 Kh1 144. Qd4 Kg1 145. Qg4 Kh1 146. Qd4 Kg1 147. Qg4 Kh1 148. Qd4 ```

main.c fails to compile

~/Code/2019/jupiter on  master ⌚ 20:30:57
$ make -C engine 
make: Entering directory '/home/marcos/Code/2019/jupiter/engine'
cc -I ./ -I pieces/include -c -fPIC -std=c99 -Wall -Werror main.c -o main.o
main.c: In function ‘print_logo’:
main.c:48:20: error: format not a string literal and no format arguments [-Werror=format-security]
             printf(line);
                    ^
cc1: all warnings being treated as errors
Makefile:31: recipe for target 'main.o' failed
make: *** [main.o] Error 1
make: Leaving directory '/home/marcos/Code/2019/jupiter/engine'

Easy fix:

diff --git a/engine/main.c b/engine/main.c
index 22633c0..f8fad12 100644
--- a/engine/main.c
+++ b/engine/main.c
@@ -45,7 +45,7 @@ static void print_logo()
             char line[80];
             memset(line, 0x0, 80);
             fgets(line, 80, f);
-            printf(line);
+            printf("%s", line);
         }
      fclose(f);   
     }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.