Saturday, March 16, 2013

Four in a row : AI logic

I had developed the game in OpenGL some time back. Will share the useful links here.

This ppt should get you started : <http://www.authorstream.com/Presentation/mysyasir-149155-artificial-intelligence-connect-4-game-ai-four-heuristic-model-presentation1-science-technology-ppt-powerpoint/>

Also using AI for this is a bit of a complicated process. Building of AI is explained in detailed in the following pdf : <http://www.connectfour.net/Files/connect4.pdf>

Other links :

http://homepages.cwi.nl/~tromp/c4.html

http://stackoverflow.com/questions/7658209/connect-4-ai-java

Monday, January 7, 2013

Easy ways to install LAMP in ubuntu

Using tasksel :
http://www.unixmen.com/install-lamp-with-1-command-in-ubuntu-1010-maverick-meerkat/

Other method :
http://www.linuxcandy.com/2012/05/how-to-install-lamp-in-ubuntu-12-04-precise-pangolin.html

Fix 404 error for phpmyadmin :
http://code-cocktail.in/phpmyadmin-404-page-ubuntu-lamp-server/

Saturday, November 3, 2012

Basic Softwares installed on Ubuntu


  1. Games :
    • 0 AD
    • Glest
    • Kbounce
  2. Graphics :
    • Picasa
    • Blender
    • GIMP
  3.  Internet : 
    • Chromium Web Browser
    • Dropbox
    • FileZilla
    • Firefox Web Browser
    • KGet
    • Skype
    • Transmission Bit Torrent Client
  4. Office :
    • Adobe Reader 9
    • Calibre
  5. Programming :
    • Cervisia
    • Code::Blocks IDE
    • Eclipse : Indigo
    • KLinkStatus
    • Kommander Editor
    • Kompare
    • MonoDevelop
    • NetBeans IDE
    • Quanta Plus
  6. Sound and Video :
    • Amarok
    • VLC media player
  7. System Tools :
    • Battery Monitor
    • Oracle VM VirtualBox
    • Prey Configurator : Laptop recovery software
  8. Wine


Other softwares and SDKs :

  1. LAMP
  2. Android sdk
  3. Flex sdk
  4. Ruby
  5. Java
  6. Python
  7. Perl
  8. Blueman

And also make ctrl+e as the Eject key

Sunday, October 14, 2012

Installing Graphics.h in Windows

Follow these steps to install and use graphics.h in windows :
  1. First install CodeBlocks
  2. Then download WinBGIm and extract it.
  3. Copy and paste graphics.h and winbgim.h files to include folder of your compiler directory.
    Mine was C:\Program Files (x86)\CodeBlocks\MinGW\include
  4. Copy and paste libbgi.a to lib folder of your compiler directory.
    Mine was C:\Program Files (x86)\CodeBlocks\MinGW\lib
  5. In code::blocks open Settings >> Compiler and debugger >>linker settings
  6. click Add button  in link libraries part and browse and select libbgi.a file
  7. In right part (ie. other linker options) paste commands
  8. -lbgi -lgdi32 -lcomdlg32 -luuid -loleaut32 -lole32
  9. click Ok
The file should be .cpp.
This version of graphics.h is the modified error free one.

Download the graphics.h file from this link :
http://www.mediafire.com/?nd3whqoqb36h8ou

Thursday, October 11, 2012

Wednesday, October 3, 2012

XML/SWF Charts


Display a dynamic graph using flash player n php :

http://www.maani.us/xml_charts/index.php?menu=Introduction