Skip to Content
Author's profile photo Praveer Kumar Sen

Play time!!!!!!

Hi All,

This is my first blog in SAPUI5 community. Hope all people will like this blog.

I start building this application just for fun but now I want to share with all my developer friends.

It’s a Sudoku game with 4 and 9 grid matrix options.

/wp-content/uploads/2016/03/sudoku1_915809.jpg

Based on selected matrix, the respective cell matrix will display in page to set initial values.

/wp-content/uploads/2016/03/sudoku2_915810.jpg

Set some initial value in cells ( for example : refer below screen)

    /wp-content/uploads/2016/03/sudoku3_915811.jpg

Note: Depends on selected matrix, any one of cell should be filled with respect to Box. In above case, four box are filled with some values.

After fill initial values, select “SET INITIAL” button to set initial values. ( As we see in Sudoku screen).

      /wp-content/uploads/2016/03/sudoku4_915815.jpg

By pressing “SET INITIAL” button, more three button will display (as above screen) and SET INITIAL button will disappear. And all set cells values field will be disable to stop changing values.

Now Sudoku is ready to play.

After fill the all cell. User can use “CHECK” button to validate result.(As per sudoku rules).

          /wp-content/uploads/2016/03/sudoku5_915816.jpg

Whenever an error found, system will display the respective error row or column information.( as above screen). If no error found then a Success message will display. (Below screen).

            /wp-content/uploads/2016/03/sudoku6_915817.jpg

In above screen three more option exist, Refresh, Show Result and Reset.

By use of REFRESH option, user can make the play matrix as same like initial stage. It will clear the all entered and set values. And only two option will display in screen, SET INITIAL and REFRESH.

By use of RESET option, user can reset the play board same as after selected SET INITIAL option.

And finally SHOW RESULT option, by use this option, user can see the final result of set Play board.

Note: Sudoku is pure mind game and users follow some trick to get the final result. I have followed some of the tricks to fill the final result based on initial values. If someone found it’s not working for any Set Value, please forward the initial value chart to me.

To direct play the game use below link, use your scn login credential to login into game.

Play Sudoku Game

For my developer friends, the all program and other files are in can be download from below link.

GitHub – Sudoku: Sudoku game in SAPUI5

NOTE:  Game will display good and aligned in Chrome browser.

Best of luck.. 🙂

Praveer Kumar Sen

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Nice practice, i'll try a game or two to see it in action

      Author's profile photo Praveer Kumar Sen
      Praveer Kumar Sen
      Blog Post Author

      Thanks Jose, please let me know about result.

      Author's profile photo Former Member
      Former Member

      Hi Praveer, well i do a quick review and found this:

      a quick translate it's basically that some script freeze, maybe it's taking too long to respond, from my point of view could be something in the script that you use for the show results (in that case a "incorrect initial values" handle could be added to prevent this), the rest looks good, i'm not a sudoku expert so maybe i use wrong initial values.

      Have a nice day.

      Author's profile photo Former Member
      Former Member

      Well i don't know if is my values or my inexperince with sudoku, but i use the reset values, then show results and it works... maybe it's somenting when there are some other values in the game

      Author's profile photo Praveer Kumar Sen
      Praveer Kumar Sen
      Blog Post Author

      Hi Jose,

      Thanks for reply. found some logical bug based on initial value. If Initial value is not correct then the mention error is coming. Thanks for input. I will change the logic and update the same.

      Thanks again.

      Praveer.

      Author's profile photo Former Member
      Former Member

      Nice, as i say, the rest looks good, i'll share some of my work soon (i hope)

      Author's profile photo Praveer Kumar Sen
      Praveer Kumar Sen
      Blog Post Author

      Hi Jose,

      I have updated the logic and deployed the same in HCP.

      Regards,

      Praveer.