Miniature/Development

(Play games online)
(Roadmap)
Line 41: Line 41:
Items with "?" are to be decided upon once we focus the discussion on them. These items might be moved to later phases of development, or removed from the roadmap altogether.
Items with "?" are to be decided upon once we focus the discussion on them. These items might be moved to later phases of development, or removed from the roadmap altogether.
-
=== Play games online ===
+
# Play games online
-
# [[Miniature/Development/Phase 1.0: Offline chess basics|Chess game basics]], demonstrated off-line.
+
## [[Miniature/Development/Phase 1.0: Offline chess basics|Chess game basics]], demonstrated off-line.
-
# [[Miniature/Development/Phase_1.1:_Online_chess_basics|Online chess basics]], targeting http://www.freechess.org/ first
+
## [[Miniature/Development/Phase_1.1:_Online_chess_basics|Online chess basics]], targeting http://www.freechess.org/ first
-
# Online chess advanced
+
## Online chess advanced
-
## Join tournaments
+
### Join tournaments
-
## Full access to FICS console (might make sense only in landscape mode)
+
### Full access to FICS console (might make sense only in landscape mode)
-
 
+
# Chat with your opponent
-
=== Chat with your opponent ===
+
## Landscape support.
-
# Landscape support.
+
# Customization
-
 
+
## Download and select different boards and pieces.
-
=== Customization ===
+
## Download and select different engines.
-
# Download and select different boards and pieces.
+
# Methods of connectivity to play against human  
-
# Download and select different engines.
+
## [[Bluetooth]].
-
 
+
## [[WLAN]].
-
=== Methods of connectivity to play against human ===
+
## [[GPRS]].
-
# [[Bluetooth]].
+
# Learn chess lessons with moves + text
-
# [[WLAN]].
+
## Positions can be set manually.
-
# [[GPRS]].
+
# Play local tournaments e.g. via Telepathy Tubes
-
 
+
# Play against computer
-
=== Learn chess lessons with moves + text ===
+
## TODO: Which engines???
-
# Positions can be set manually.
+
# Chess variants
-
 
+
## [http://en.wikipedia.org/wiki/Antichess Antichess]
-
=== Play local tournaments e.g. via Telepathy Tubes ===
+
## [http://en.wikipedia.org/wiki/Chess960 Chess960]
-
 
+
# Display games by you or others, live or stored
-
=== Play against computer ===
+
## Low priority: [http://talk.maemo.org/showpost.php?p=364101&postcount=58 Chessmonk] is concentrating on this for Maemo 5 => not that urgent for Miniature)
-
# TODO: Which engines???
+
## History of an opening.
-
 
+
## Take a picture of a printed game, process the notations with OCR and display it.
-
=== Chess variants ===
+
## Display several games at a time.
-
* [http://en.wikipedia.org/wiki/Antichess Antichess]
+
## Watch game via webcam stream
-
* [http://en.wikipedia.org/wiki/Chess960 Chess960]
+
-
 
+
-
=== Recording to log, playing back a log ===
+
-
Display games by you or others, live or stored
+
-
 
+
-
Low priority: [http://talk.maemo.org/showpost.php?p=364101&postcount=58 Chessmonk] is concentrating on this for Maemo 5 => not that urgent for Miniature)
+
-
# History of an opening.
+
-
# Take a picture of a printed game, process the notations with OCR and display it.
+
-
# Display several games at a time.
+
-
# Watch game via webcam stream
+
-
 
+
-
 
+
-
 
+
== Technology selections ==
== Technology selections ==

Revision as of 16:41, 10 November 2009

Miniature is based on the official Qt 4.6 for Maemo and its Graphics View framework. Most of our work focuses on developing a UI layer optimized for mobile touch devices. When it comes to the backend we want to recycle as much as possible from existing chess engines.

The development is guided by the roadmap and is organized by phases bringing new features to our users. The organization of the roadmap is based on a pragmatical implementation of the Miniature concept taking into account features missing in Maemo, existing chess projects and the requests from current and potential users.

New contributors are welcome! You can help testing and bugfixing new releases focusing on the current phase or you can pick one item more distant in the roadmap and go ahead with it. No matter what you do we recommend you to stay on focus.

Contents

Project status

Development Status

Ideas for future phases

Proposals and plans for future phases.

Additional functions

  • Chess clock only function: It would be great to use the N900 as a chess clock only if there is a real board and a "real" opponent is available. The functionality will be in the apllication so a nice UI for this function is all what is needed.--jukey 21:57, 9 November 2009 (UTC)
  • Possibility to play a game human vs. human offline. In this case the board should flip 180° between two moves.--jukey 21:57, 9 November 2009 (UTC)

Mockups

These are the current sketches.

main-l: main window in landscape mode (needs update) menu layout


Old ;)

deprecated deprecated

Roadmap

(Draft, sorted by priority.)

Items with "?" are to be decided upon once we focus the discussion on them. These items might be moved to later phases of development, or removed from the roadmap altogether.

  1. Play games online
    1. Chess game basics, demonstrated off-line.
    2. Online chess basics, targeting http://www.freechess.org/ first
    3. Online chess advanced
      1. Join tournaments
      2. Full access to FICS console (might make sense only in landscape mode)
  2. Chat with your opponent
    1. Landscape support.
  3. Customization
    1. Download and select different boards and pieces.
    2. Download and select different engines.
  4. Methods of connectivity to play against human
    1. Bluetooth.
    2. WLAN.
    3. GPRS.
  5. Learn chess lessons with moves + text
    1. Positions can be set manually.
  6. Play local tournaments e.g. via Telepathy Tubes
  7. Play against computer
    1. TODO: Which engines???
  8. Chess variants
    1. Antichess
    2. Chess960
  9. Display games by you or others, live or stored
    1. Low priority: Chessmonk is concentrating on this for Maemo 5 => not that urgent for Miniature)
    2. History of an opening.
    3. Take a picture of a printed game, process the notations with OCR and display it.
    4. Display several games at a time.
    5. Watch game via webcam stream

Technology selections

How to make the most from existing free projects avoiding forking and duplicated work as much as possible.

  • Qt 4.6 for UI layer. The goal is to have Maemo as primary development platform, aiming for straight ports to Symbian and other Qt compatible platforms.
    • Can we save work by looking at pacaq and Knights? Others? --qgil 06:22, 3 November 2009 (UTC)
  • What starting point to get the online chess features?
  • What starting point for chatting?
  • What starting point for game analysis?

Architecture

GUI:

  • Board
  • Chat
  • Player Cards
  • Online Play

Logic:

  • Game - the logic for a particular game, right now that would be just chess, but other board games could be possible too. (Chess based or other)
    • The current game controller can update the board, using FEN strings (we might want to wrap the QStrings in a simple Position container, if we add parsing API to it) and knows about the UI.
  • Pre-Game - How to find players, select a server or engine

Domain:

  • Board - Represents the data structure of the board (duh)
    • Can draw a position based on a valid FEN string, say "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1" encodes the start position.
    • How it works: Each figure is a QGraphicsSvgItem. This is useful since it allows fingertouchability. The board draws its position, meaning it removes all its figures children (by deletion) and then re-reads the SVG files into new QGraphicsSvgItem. Needless to say, this is inefficient. A better way would be to let the board load all figures during its construction time, put them in a vector (using enums for the indices lookup, maybe) and instead of clearing the board by deletion, just unparent the figures from the board, then reparent them into the correct position. Or just move them around, and hide those that were removed by game moves. Both should be easy and bring a good speed-up (SVG loading is quite expensive I hear). It is bascially about killing unneeded new/delete sequences.
  • Player - information about the other player, like online status, skill level
    • Player "cards" would be part of this. Currently, they only exist as some HTML-formatted text in the scene view.

Communication:

  • ICS
  • Bluetooth
  • Telepathy
  • Computer Chess Engine - an offline engine should be accessed the same way any online game is, the engine does not have to be in the same task

References

  • Crafty is a free, open-source computer chess program.
  • EBoard and Crafty for the N810/N800/N770 - OS2007 Downloads page.
  • Knights aimed to be the ultimate chess resource for the K Desktop Environment... years ago.
  • pacaq is a chess game visualizing and analysis tool done with the Maemo 4.1 Qt4 port - Talk thread.
    • From all programs on this list, this is the only one were reading the code is worth your time.
  • SCID, a chess database application for Windows, Linux and Mac OS operating systems.
  • Xboard is a graphical user interface for chess in all its major forms.
  • freechess.org Website of the Free Intrnet Chess Server (FICS)