Tuesday, November 29, 2011

Sudoku generator

Hello,
I've made a progress in our app. Not in a Hello World, of course :) .

I've programmed a sudoku generator, which can generate sudoku based on difficulty (level 1 to 5, from the easiest to the hardest).

You can add or remove numbers, restart game and validate if numbers is in collision or not. This takes me several hours. Game should be solvable by humans.

Someone should test if it works right :) .

- Tomáš T.

Wednesday, November 23, 2011

First Tablet App!

And there it is!
Few weeks ago we've tried our first tablet application :) .
Classic Hello Word and if you fill in your name and press "Say hello!", our app will say Hello to you :) .

Start screen.











After pushing the button with empty editbox.











After filling in a name and pushing the button. Our app remember your last used name!
(btw, your first name is by default World :) ).








I've don't expected that this entire app will be so easy... programming this took me about an four hours. Now, I can do this again about four minutes :) ...

...and the best part - you can download it and try it on your own right here! Enjoy ;) .

- Tomáš T.

Competition - Menu and Options

Hello,
I've missed one important thing! In Andro and Open Sudoku there is an menu button in the bottom bar of tablet.

If you press it, you will see a little pop-up menu with six items (via screen shot). I will describe them one by one.

1) Back button - revert your previous actions.
2) Delete notes - delete all your notes.
3) Restart - play whole game from start.
4) Help - just help :) .
5) Options (will be described below).
6) Next - "Set checkpoint" and "Undo to checkpoint" - function like an ordinary save and load in most common games.

Options
Options is divided to three groups, Helpers, Fill-in Modes and Game.

Helpers
1) Wrong numbers - shows numbers that violate the rules of Sudoku.
2) Highlight complete numbers - highlights the numbers which has been filled more than 9-times
3) Show number totals - displays count of each number placed.
4) Fill-in notes - enable fill in notes menu item.

Fill-in Modes
1) Pop-up mode
2) Single Number mode
3) Numpad mode
You can enable or disable them in game.
4) More options -> Right shift - in Numpad mode, after filling a value, cell will move to the right.

Game
1) Show the time - shows the elapsed time.
2) Help in game - shows the help for quick understanding with application control.
3) Theme - there you can set the background of game table.
4) More options -> The size of border of display (some displays respond poorly to touch the edges of the screen, this should help) and Highlight the field in touch (highlight the columns and rows).

























That is all for now, thanks for reading!

- Tomáš T.

Sunday, November 20, 2011

JDO - basic structure

Today, i made a basic structure of database in JDO. For begin i implemented just simple structure, for that what we need. It must be extended if we will want to add more applications. But for testing functions is better to have simple database.

I haven't implemented parts from model which supports more applications, like challenge relationship to program, user groups. At this moment user can only be a part of one university. Users cant create their own groups. In the JDO are only simple methods for adding universities and cities, and states to database. Of course there are methods for listing of data saved in the database.

Tuesday, November 15, 2011

Competition - two remaining apps

This is descritpion for two remaining sudokus: Sudoku from finger2finger and Sudoku Fighters from Drowning Zebra.

Both games have only one filling mode and that one is identical to NumPad mode in OpenSudoku. Both games does not react to turning the tablet to left nor right.

I will start with finger2finger Sudoku. When you start app, you will see some advertising

As you can see, this Sudoku version is vertically oriented and you can't do anything with it.

This is the main "option".














If you push up arrow button, small menu shows up where is credits, sound toggle button and some buttons for social networks.

This screenshots is showing credits - it's a endless loop of five rows text.













After pushing "Start" button, you can choose between Easy, Medium and Hard difficulty.
















The game itself look like this. It doesn't provide any possibility for notes and there are no warnings if you make some collisions.
















When you press "Pause" button, time ticking is stopped, but you can still see entire sudoku. And a small options with four buttons shows up - down arrow (return to game), rotated arrow (after click on it game crashes :) ), menu button and sound toggle button.

I dont't know why is there sound button anyway, because the game doesn't play any sounds at all.











This version acts to me simple, maybe too simple and very amateurish. Little plus for me is color.

Last tested sudoku is Sudoku Fighters from Drowning Zebra. This version of sudoku is quiet more proffesional than previous sudoku.

This is main menu, you can see it right after start.











In Option is Music and Sound toggle button (and yes, game plays both, music and/or sounds) and you can choose where do you want have keyboard (left or right).








This is "Level select" item. You can choose between one hundred generated sudokus. You can start game right from here or from main menu "Play".








Only loading screen. Music starts to play here. Loading is animated (playgroud comes to you from greater distance and starts enlarging to the final position as you can see).








This is how looks the game itself. You can see a small red dot, it represents a cursor. Each time when you fill (or unfill) a number, a sword swift sound is played. It's cool, I think :) . But maybe for some first games. This version doesn't show any warnings about collision too.






- Tomáš T.

Monday, November 14, 2011

Competition

Hello, I've looked for competition in sudoku apps and I've found, downloaded and tryed these four:
- AndroSudoku
- OpenSudoku
- Sudoku from finger2finger
- Sudoku Fighters from Drowning Zebra

Andro and OpenSudoku are quite similar (in fact, up to the name are identical), meanwhile two other sudokus's are totaly different.

AndroSudoku and OpenSudoku

When apps starts, main menu looks very simple.
You can choose between Easy, Medium or Hard difficulty.









If you choose e.g. "Easy", you can choose between 30 generated sudokus. You can see the sudokus you've solved or you actually playing or other unsolved games. If you solve one of them, one another is genereted.







Game itself look like this.
The game have 3 "filling number" modes: Pop (this one), SN and NumPad. In each mode you can choose between filling a number or a note.








Pop mode - filling a number.
If you want to fill a number to a location, just click at it, this pop-up table jumps out and do another click to complete filling.








Pop mode - filling a note.
To fill a note just choose which number you want to be noted and then close the pop-up window.









Notes look like this - in one square is filled a small number(s), for each digit at a defined position (one in upper left corner, two in top-middle position, three in upper right corner etc.).







Single Number (SN) mode.
SN and NumPad mode look same, but behavior is different. If you want to fill a number in SN mode, just choose the number from right side of screen and then click to position where you want it.






"Pencil button" is switcher between filling a number or a note. It's function is same for both modes.

NumPad mode.
In NumPad mode, to fill a number choose location where you want to fill it and then press a number button from right side of the screen.

The game also warns you if you make by filling a number some collisions (involved digits will turn red).




When you turn your tablet to vertical position, layout changes and turns around too.
















In first start there is a help which guide you trough the using and differences of all modes. The game does not play any songs (except pressing a button, that is same sound as in operation system) and as you can see, the graphic is very simple.

Two other sudoku I will describe in next post.

- Tomáš T.

Sunday, November 6, 2011

Git SSL verification failed

I've found a problem with communication over https with GoogleCode. It supports only this way so you can't use GIT over SSH as like as GitHub.  I'm using git from Cygwin at Windows XP. Probably, using any other system or git provider (eg. msysgit) doesn't produce this error. If you use https connection, this message appears:

error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://code.google.com/p/<project_name>/info/refs

fatal: HTTP request failed



So, I's loking for solution of this problem and found it on StackOverFlow. It's very simple. You have a few posibilities for solution. I've chosen first one - importing CA certs beacuse it's good for solving possible future problems (at GitHub using wget I must use http against to https too despite of this problem).

$ cd /usr/ssl/certs
$ curl http://curl.haxx.se/ca/cacert.pem | awk 'split_after==1{n++;split_after=0} /-----END CERTIFICATE-----/ {split_after=1} {print > "cert" n ".pem"}'
$ c_rehash



If you don't have curl, you can use Wget as well (wget -O -).
At linked page they suggest disable ssl verify by environment variable or by git config flag. I think described solution is the best of.

Friday, November 4, 2011

Smartphone Mockup Video



Mockup: http://www.balsamiq.com
Screen Recorder: http://www.thesilver.net

Development IDE

I've created a simple poll for my team-mates whitch development IDE we use. Althought plugins support in NetBeans is at very good level (in comparsion of my experience from year ago) we've chosen Eclipse as main development IDE. First preview of our project will be showed soon.