How to make a Sudoku (Only javascript used)

on Friday, January 9th, 2009 at 2:03 am

10 days ago, a good friend of mine asked me to write a sudoku online game for him.
He is always bored at work and wanted to lose some time, so… here it is :)

PLAY

Rules of sudoku

  • Each row should contains all numbers from 1 to 9 (no repetition)
  • Each column should contains all numbers from 1 to 9 (no repetition)
  • Each 3×3 table should contains all numbers from 1 to 9 (no repetition)

Logic used

  • Start by generating each number in a cell at a time by choosing randomly from 1 to 9
  • If the number is ok and do not conflict with the other cells —> Continue to next one
  • Else —> go back one cell and choose another number

Play the game: here
Download the files: here

Enjoy :)

New server, new header

on Sunday, December 21st, 2008 at 3:41 pm

Well welcome to the new header styled, hosted joeabiraad.com :P
After my pagerank droped to 2 and discovering that my website is hosted with like a trillion other websites on the same server containing adult materials… I moved my blog to another server, its more expensive of course but i already like it more :)

Here is a list of the website that were being hosted with joeabiraad.com

http://www.reverseip.us/index.do?url=74.54.18.242

Thats more then 468 websites…… thats insane !

Manage your workplace stress !

on Sunday, December 16th, 2007 at 8:35 am

untitled-2.jpg
Stress is the “wear and tear” our bodies experience as we adjust to our continually changing environment; it has physical and emotional effects on us and can create positive or negative feelings.
Most of us experience stress at work, maybe while giving a presentation, racing to meet a deadline. Remember how your heart was pounding and you were breathing harder?

I am not a doctor or anything but this is what i do when i am stressed: Most of the time I take 15 to 20 minutes to sit quietly and maybe play an online game.
Instant Chess has been a perfect solution for me.
It will take you 10 secs to start a game, usually one round of chess could take 15 mins with a possibility of limiting the time frame. In those 15 mins you will think in a fast way, unload your stress and recharge your energy (at least it worked with me).

Anyway, enough with the words… why don’t you give it a shot ? www.instantchess.com and tell me if it worked.
By the way i wrote this article in order to get a free subscription… Yep !! Thats even possible :P Wish me luck hehe

// Jo