Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #108296

Re: python chess engines

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Christopher Reimer <christopher_reimer@icloud.com>
Newsgroups comp.lang.python
Subject Re: python chess engines
Date Sat, 07 May 2016 13:40:33 -0700
Lines 29
Message-ID <mailman.473.1462653646.32212.python-list@python.org> (permalink)
References <ngc06g$533$1@dont-email.me> <572E52C1.7010303@icloud.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de 7KC1d8AzzXHIDSTlURknmQppS8Gk/i8GVbNTceCq2qFw==
Return-Path <christopher_reimer@icloud.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.058
X-Spam-Evidence '*H*': 0.88; '*S*': 0.00; 'implements': 0.07; 'implemented.': 0.09; 'input,': 0.09; 'subject:python': 0.14; '10:13': 0.16; 'coordinating': 0.16; 'dfs': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'thread.': 0.16; 'two.': 0.16; 'wrote:': 0.16; 'board.': 0.18; 'passes': 0.18; 'decide': 0.23; 'url:download': 0.24; 'requests': 0.25; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'chris': 0.26; 'separate': 0.27; 'received:17': 0.27; 'accepts': 0.29; 'protocol.': 0.29; 'thread,': 0.29; 'board': 0.30; 'classes': 0.30; 'code': 0.30; 'class.': 0.30; 'received:10.0.0': 0.32; 'class': 0.33; "i'll": 0.33; 'received:10.0': 0.34; 'add': 0.34; 'next': 0.35; 'displays': 0.35; 'something': 0.35; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'display': 0.37; 'wanted': 0.37; 'things': 0.38; 'version': 0.38; 'thank': 0.38; 'rather': 0.39; 'to:addr:python.org': 0.40; 'header:MIME- version:1': 0.60; 'your': 0.60; 'engine': 0.62; 'show': 0.62; 'research': 0.62; 'charset:windows-1252': 0.62; 'movement': 0.63; 'positions': 0.64; 'between': 0.65; 'forward': 0.66; 'records': 0.70; 'grow': 0.75; 'header:In-reply-to:1': 0.84; 'move.': 0.84; 'url:zip': 0.84
X-Proofpoint-Virus-Version vendor=fsecure engine=2.50.10432:,, definitions=2016-05-07_13:,, signatures=0
X-Proofpoint-Spam-Details rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1605070306
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
In-reply-to <ngc06g$533$1@dont-email.me>
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=4d515a; t=1462653637; bh=Ul6zdsWhk/GKi953r89j0oIKu3uoUPHaNgCiGqg3JLM=; h=Subject:To:From:Message-id:Date:MIME-version:Content-type; b=U42E14RZ8H0O4T65FQuBDdH/5CkVV8FqiJpgVlXu8HL01hz6yYjZ7f4+zsVmJMUQR DbB722om7OZOtiJSGuL4i4tKHIdIfaZ2lmPR//YhmBgBfPqu8DbUlN7KYVnrTH5+Io QOCIYmUNnPz+/r3AD06/lp9/6Uc0bBmg/tTBa0tw/Cu7II/sGjVETgyifkQBCDSBig fO6MadgZlame3bmZEqgK0CjgovkfRAKTiMfGCdzPe4XWyChXwb1taqf5wOdimGsW6R 8oaBj+CIPxFDOoBpVMaHK2Vyd/Ce7Ozs6/pX/YwM/1+GIrefW2+moNT/B6d+WgqBZa 17uxjB10QFydA==
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.22
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <572E52C1.7010303@icloud.com>
X-Mailman-Original-References <ngc06g$533$1@dont-email.me>
Xref csiph.com comp.lang.python:108296

Show key headers only | View raw


On 5/3/2016 10:13 PM, DFS wrote:
> Wanted to start a new thread, rather than use the 'motivated' thread.
>
> Can you play your game at the console?

Nope. Only displays the board on the console. An early version had the 
forward movement for pawns implemented.

> The way I think about a chess engine is it doesn't even display a 
> board.  It accepts a move as input, records the move, analyzes the 
> positions after the move, and returns the next move.

My code has display and engine as separate classes with a main loop 
coordinating things between the two. The main loop requests the board 
state (dict) from the engine class and passes that to show board on the 
display class.

> Here's the UCI protocol.
> http://download.shredderchess.com/div/uci.zip

Very interesting. Something to add to my research notes. I'll muddle 
through with my code and let it grow organically for now.  If I decide 
to write a chess engine that implements the UCI protocol, I'll start 
over with a clean slate.

Thank you,

Chris R.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

python chess engines DFS <nospam@dfs.com> - 2016-05-04 01:13 -0400
  Re: python chess engines Christopher Reimer <christopher_reimer@icloud.com> - 2016-05-07 13:40 -0700

csiph-web