Commit Graph
48 Commits
Author SHA1 Message Date
Steve Barnegren 18339d9710 Added configuration weighting for board rater centre four occupation 2017-01-04 07:56:56 +00:00
Steve Barnegren 2a3c883793 Added BoardRaterCenterFourOccupation 2017-01-03 19:40:48 +00:00
Steve Barnegren 227c4f3b45 Added tests for all AIConfiguration properties 2017-01-03 19:24:33 +00:00
Steve Barnegren ed73233a7e Added tests for AIConfiguration 2017-01-03 08:39:23 +00:00
Steve Barnegren 6a81b0ec19 Added AIConfiguration 2017-01-02 19:16:08 +00:00
Steve Barnegren 118837a2f4 Change board rater from protocol to class 2017-01-02 18:44:04 +00:00
Steve Barnegren 6426a4754f Added BoardRaterCheckMateOpportunity 2017-01-02 18:21:52 +00:00
Steve Barnegren 59f467ab60 Added BoardRaterKingSurroundingPossession 2016-12-29 22:27:25 +00:00
Steve Barnegren 1831a35ff4 Added ability to perform castle moves to board 2016-12-29 18:58:44 +00:00
Steve Barnegren 69a8722c2a Added some failing tests preventing castling from working correctly 2016-12-29 18:09:05 +00:00
Steve Barnegren a61a638ba7 Implemented castling logic 2016-12-29 17:08:40 +00:00
Steve Barnegren 70f561a9cd Added 'hasMoved' property to pieces 2016-12-29 15:22:06 +00:00
Steve Barnegren 4f6ae8c817 Minor changes 2016-12-29 13:59:20 +00:00
Steve Barnegren 3f7c6c58f2 Add board method to get promotable pawn locations 2016-12-28 23:11:36 +00:00
Steve Barnegren f698396599 Added a few more tests 2016-12-28 22:37:01 +00:00
Steve Barnegren a9e8889ff0 Prevent pieces from trying to take king 2016-12-28 21:49:06 +00:00
Steve Barnegren ee67afa6dc Fix bugs allowing pawn to jump over other pieces 2016-12-28 19:42:49 +00:00
Steve Barnegren 94278ef571 Fix BoardRaterThreatenedPiecesTests 2016-12-28 19:05:15 +00:00
Steve Barnegren 2551c359ce Improvements to BoardRaterThreatenedPieces 2016-12-27 20:16:26 +00:00
Steve Barnegren aea6d4b22c Added tests for getting threatened pieces 2016-12-27 17:34:26 +00:00
Steve Barnegren 439f0c95d6 Added tests for getting protected pieces 2016-12-27 17:28:32 +00:00
Steve Barnegren 60149bd296 Added BoardRaterPawnProgression 2016-12-16 08:30:54 +00:00
Steve Barnegren b347f2d92e Added value multipler for threats against own pieces 2016-12-14 20:40:36 +00:00
Steve Barnegren 20e2e5dd18 Fixed failing tests for BoardRaterThreatenedPieces 2016-12-14 20:25:07 +00:00
Steve Barnegren 17e9c65211 Added failing test cases for BoardRaterThreatenedPieces 2016-12-14 08:58:41 +00:00
Steve Barnegren ab7782dea8 Rename BoardRaterCenterDominance -> BoardRaterCenterOwnership and add BoardRaterCenterDominance 2016-12-13 08:41:40 +00:00
Steve Barnegren b473ab4828 Added BoardRaterBoardDominance 2016-12-13 08:19:04 +00:00
Steve Barnegren b45b24a72e Shaped piece labels for images, and added board rater for center dominance 2016-11-29 22:45:18 +00:00
Steve Barnegren e63f7261f4 Fix stalemate logic 2016-11-28 21:33:52 +00:00
Steve Barnegren 56f66752ed Give pieces tag property so that they can be associated with UI elements 2016-11-26 09:10:53 +00:00
Steve Barnegren 1a5deb4640 Add BoardRaterCountPieces 2016-11-26 08:26:54 +00:00
Steve Barnegren e8eaa43208 Fixed issues with tests not running 2016-11-24 18:28:16 +00:00
Steve Barnegren cf763cc7b1 Move tests to framework project 2016-11-23 22:49:38 +00:00
Steve Barnegren e2145ba10f Added board methods to check if player is in check mate 2016-10-20 17:46:43 +01:00
Steve Barnegren c75b517c48 Added build script to make TODOs warnings 2016-10-18 22:21:51 +01:00
Steve Barnegren 850811cef2 move functions throw errors for non-valid moves 2016-10-18 22:16:59 +01:00
Steve Barnegren 03dec77766 Able to test if player is in check 2016-10-18 20:50:37 +01:00
Steve Barnegren 727b04729a Add board functions for filtering pieces and refactor tests 2016-10-18 09:22:43 +01:00
Steve Barnegren 8b6da72754 Add pawn ability to take opponent pieces diagonally 2016-10-13 21:54:02 +01:00
Steve Barnegren 0b80ee1806 Players can take it in turn to move 2016-10-13 20:55:49 +01:00
Steve Barnegren 9f5cfac50a White player now able to move in example project 2016-10-13 19:14:53 +01:00
Steve Barnegren 9029c75669 Slight refactoring of game 2016-10-11 22:46:45 +01:00
Steve Barnegren 33a347b482 Make PieceType enum nested type 2016-10-11 21:44:08 +01:00
Steve Barnegren 09ea19f203 Add more tests for Board 2016-10-11 21:41:45 +01:00
Steve Barnegren 3517e5ad6a Slight refactor of Board to make initialisation easier 2016-10-11 19:41:53 +01:00
Steve Barnegren 786c49e27d Refactor tests to be more concise and easier to read 2016-10-08 16:59:30 +01:00
Steve Barnegren 7c9272a3e0 A few more tests and upgraded to swift 3 2016-09-22 21:12:39 +01:00
Steve Barnegren cc884bcda6 Initial commit 2016-09-04 15:14:33 +01:00