Commit graph

881 commits

Author SHA1 Message Date
Sascha Peilicke
9c553c4528 Hint (aka top moves for current player) mostly done, some issues remain. More configuration options (hint show length, show move hist), GameScreen now displays (some) statistics and the GoEngine got the usual bug-fixes and feature additions.
svn path=/trunk/playground/games/kgo/; revision=843694
2008-08-07 16:33:39 +00:00
Sascha Peilicke
cad0bcb98e Added hint and move_history to MainScreen and started implementation in GameScene.
svn path=/trunk/playground/games/kgo/; revision=843182
2008-08-06 16:49:54 +00:00
Sascha Peilicke
3ec3506394 Fixed handicap handling should now be sane. GoEngine checks for invalid values (also retrievable), SetupScreen correctly updates it's UI based on that values. Minor code tweaks for GoEngine and GameScreen.
svn path=/trunk/playground/games/kgo/; revision=843169
2008-08-06 15:51:52 +00:00
Sascha Peilicke
ce841e9f3e GameScene finally draws Go stones on the board, serious gaming soon to start.
svn path=/trunk/playground/games/kgo/; revision=843108
2008-08-06 13:10:11 +00:00
Sascha Peilicke
974ff67bbf GoEngine::moveHistory() fixed. SetupScreen updates the fixedHandicapGroupBox if board size is changed. Started to implement GameScene::updateBoard() which updates QGraphicsPixmapItems to display Go stones and their positions on the board.
svn path=/trunk/playground/games/kgo/; revision=842614
2008-08-05 16:28:39 +00:00
Sascha Peilicke
24815b9c9c ErrorScreen now displays the Go engine error that occured and GoEngine reports more sane errors.
svn path=/trunk/playground/games/kgo/; revision=842540
2008-08-05 13:54:31 +00:00
Sascha Peilicke
08ac1e6f65 Changed source-tree, all GUI screens moved into src/gui/screens and all graphicsview stuff moved into src/gui/graphicsview. A distint error screen was added and is shown when the Go engine cannot be started. The config dialog was extended a bit, the Go engine configuration bits shall be improved in a following commit.
svn path=/trunk/playground/games/kgo/; revision=842504
2008-08-05 12:42:24 +00:00
Sascha Peilicke
452a525dd7 MainWindow sub-screens are now loaded on-demand for faster startup, initial work on an ErrorScreen for Go engine related errors (not found, etc.). GameScene code refactoring. MainWindow and GameScene start to report status messages (game actions, user interaction, etc.) which are displayed in MainWindow's status-bar.
svn path=/trunk/playground/games/kgo/; revision=842055
2008-08-04 16:26:26 +00:00
Sascha Peilicke
f0eb5f751f SetupScreen has much better UI, fixed handicap setting streamlined, GoEngine current player handling implemented and smaller bug-fixes. GameScene stone placement works and correct cursor based on current player cursor.
svn path=/trunk/playground/games/kgo/; revision=842005
2008-08-04 13:10:11 +00:00
Sascha Peilicke
5c19c3446d Fixed several GoEngine issues: Stone.toLatin1() now gives correct values, several foreach loops corrected to only generate Stone lists if the GoEngine response is not empty.
svn path=/trunk/playground/games/kgo/; revision=840714
2008-08-01 15:54:58 +00:00
Sascha Peilicke
47e4bcbc33 Fixed last fix, unnecessary casts avoided
svn path=/trunk/playground/games/kgo/; revision=840484
2008-08-01 09:47:21 +00:00
Sascha Peilicke
797c6a2ab8 Fixed a compile-time error which happens when QT_NO_CAST_TO_ASCII is set.
svn path=/trunk/playground/games/kgo/; revision=840479
2008-08-01 09:06:59 +00:00
Sascha Peilicke
93de106aeb GoEngine code reworked
svn path=/trunk/playground/games/kgo/; revision=839691
2008-07-30 15:20:58 +00:00
Sascha Peilicke
eabe263621 Board size changes and label on/off reflect immediatly on GameScene, mouse-sensitive area on GameScene tuned and GoEngine got some fixes.
svn path=/trunk/playground/games/kgo/; revision=839598
2008-07-30 11:39:03 +00:00
Sascha Peilicke
163d183598 Reduced amout of calls to GoEngine from GameScene, more steps towards user interaction with GameScene
svn path=/trunk/playground/games/kgo/; revision=839228
2008-07-29 15:14:51 +00:00
Script Kiddy
6930814f93 SVN_SILENT made messages (.desktop file)
svn path=/trunk/playground/games/kgo/; revision=838962
2008-07-29 05:54:30 +00:00
Sascha Peilicke
2adf99ee57 GameScene now correctly resizing when another GameView comes visible
svn path=/trunk/playground/games/kgo/; revision=838832
2008-07-28 20:55:51 +00:00
Sascha Peilicke
97c45e24d0 Fixed krazy found spelling, foreach and desktop file issues
svn path=/trunk/playground/games/kgo/; revision=838781
2008-07-28 17:55:59 +00:00
Sascha Peilicke
f924c9e67c Better GameScene font resizeing.
svn path=/trunk/playground/games/kgo/; revision=838717
2008-07-28 15:41:16 +00:00
Sascha Peilicke
3cf42087e1 Simplified GoEngine code, fixed some minor issues, tough situation is still not optimal, the reentrancy problem should be solved. Corrected board resizeing behavior and fixed SetupScreen engine initialisation command order (for new games and loaded games, some commands failed because they where send to the Engine before the backend connection was open).
svn path=/trunk/playground/games/kgo/; revision=838328
2008-07-27 14:31:08 +00:00
Sascha Peilicke
f53871439c Minor documentation updates
svn path=/trunk/playground/games/kgo/; revision=837705
2008-07-25 14:11:55 +00:00
Sascha Peilicke
f9a650b1be endTurn action added, GameScene now provides GameView with a Go stone cursor (based on current player and board size).
svn path=/trunk/playground/games/kgo/; revision=837701
2008-07-25 14:02:16 +00:00
Sascha Peilicke
d16263cb3c GameScene rendering improved, coordinate labels now work. SetupScreen now sends all exposed setup options to Go engine.
svn path=/trunk/playground/games/kgo/; revision=837658
2008-07-25 11:30:42 +00:00
Laurent Montel
d36bd6925d Extract messages
svn path=/trunk/playground/games/kgo/; revision=837588
2008-07-25 06:58:09 +00:00
Sascha Peilicke
8f66de2353 Small comment additions to GoEngine
svn path=/trunk/playground/games/kgo/; revision=837504
2008-07-24 21:12:29 +00:00
Sascha Peilicke
a759e21208 fixed GoEngine number parameter conversion issue, SetupScreen now correctly sets fixed handicap
svn path=/trunk/playground/games/kgo/; revision=837492
2008-07-24 20:17:57 +00:00
Sascha Peilicke
e9deb2e0ec GameScene now responsible for rendering board grid and labels, moved out of themes. GameView now visualizes non-interactive game scenes. Refactored class Gtp to GoEngine (purpose more clear)
svn path=/trunk/playground/games/kgo/; revision=837381
2008-07-24 14:51:29 +00:00
Script Kiddy
799d353302 SVN_SILENT made messages (.desktop file)
svn path=/trunk/playground/games/kgo/; revision=837203
2008-07-24 07:09:21 +00:00
Sascha Peilicke
475360d117 Code refactoring, only one GameScene object (with GTP connection child) shared accross the application, more GTP protocol methods implemented with more error checks and robustness. Added some Apidocs.
svn path=/trunk/playground/games/kgo/; revision=837145
2008-07-23 21:51:51 +00:00
Script Kiddy
5e391aa095 SVN_SILENT made messages (.desktop file)
svn path=/trunk/playground/games/kgo/; revision=836892
2008-07-23 09:02:27 +00:00
Sascha Peilicke
2ecdeb9296 Added KGo to playground/games and integrated into build-system.
svn path=/trunk/playground/games/kgo/; revision=836659
2008-07-22 18:14:46 +00:00