Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/3/85; site ukecc.UUCP Path: utzoo!watmath!clyde!cbosgd!ukma!ukecc!edward From: edward@ukecc.UUCP (Edward C. Bennett) Newsgroups: net.sources.bugs Subject: A slight problem with othello/reversi Message-ID: <158@ukecc.UUCP> Date: Sun, 14-Jul-85 16:53:24 EDT Article-I.D.: ukecc.158 Posted: Sun Jul 14 16:53:24 1985 Date-Received: Sat, 20-Jul-85 08:18:54 EDT Organization: Univ. of Ky. Engineering Computing Center Lines: 21 Keywords: int vs. char In the recent Othello game that was posted there is one major problem. Originally the board is formed of chars. To distinguish pieces, squares are set to 1 for white, -1 for black. The problem is that a char can't hold -1. (Sometimes they can, it depends how your machine handles sign extension) To be technically correct, change line 9 of reversi.h to: typedef int boardT[SIZE+2][SIZE+2]; There are also some char-to-int changes to be made in move.c and score.c. In several functions there are some register chars defined. Make them register ints. -- Edward C. Bennett UUCP: ihnp4!cbosgd!ukma!ukecc!edward /* A charter member of the Scooter bunch */