I created the basic algorithm to create the minefield and place bombs, then used fprintf() heavily to create a text-based user interface. Since I had never created a game before, I decided to do a text based version first. My program was so much more advanced than everyone else's, the TA (teaching assistant) thought that I'd copied it off the internet! Not surprising, since some students presented code that literally used just 2 to 3 functions to plot a graph (plot is a built-in function in Matlab). The objective of the course was to create a Matlab program (no restriction on the type of program) that would demonstrate the student's understanding of the language. I had learnt to program only a couple of months ago in my Matlab course at college (Engineering Major). Hope you enjoy this game.A GUI game based on Minesweeper. Your critics and comment are welcomed, especially if you find a bug in this game. You can download this game from my MATLAB Fun Toolbox pages. After another half hour, it is finally done :D.Ībove are several screenshots of my minesweeper game. So to overcome this, I decided to go wild, break the format, and offer a new gameplay (means that I still don’t know how to get input from right clicking in MATLAB). Last weekend, I toss my thesis aside and spent two hours making the minesweeper game and turns out that I have a problem in creating function for marking the bomb (which is done by right-clicking in Window’s miesweeper). Since minesweeper is a single player game and do not requires any AI in it, it will be relatively easier to make than TicTacToe. After I post my TicTacToe game in MATLAB, a friend of mine challenges me to make minesweeper game in MATLAB.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |