Wednesday, 1 January 2014

OMR.

Ryk gave me a heart attack yesterday! Like I felt like I was going to collapse. He entered 0s for the mark to scare us all and make sure that we handed it in soon.

Anyways, all I had left to do was test cases...

until I found a bug, where the "recreate" maze button didn't work. So I changed a bit of the code, where there's two different initialize methods - one for doing it first, and then the other for resetting the values.

I was having trouble finding out how to differ the initializations, when I chose to do two separate ones. It helped a lot.

But after this, the map had holes in the middle of nowhere, where things wouldn't display. I later found out that I failed to call the gameBoard(); method which added the thing to the screen. So I'll be done the test cases, polish up the pseudocode that I wrote before, and I think I'll hand it in by tonight.

Monday, 23 December 2013

GJFLDKSJFLKDSJF

I'm so out of ideas. I'm just owiereiwonvsvksjlfkjdslkfjlskjf;alnvsldk.

I know how to solve the maze, and I wrote an entirely functional program, but it doesn't use recursion to solve it, and I'm just slightly, just slightly freaking out because after all the time, I don't know what's wrong with it.

Sunday, 22 December 2013

Thank you thank you thank you

This should have been posted yesterday, but a day late isn't bad.

So yeah...

Anyways, Ryk helped a lot with the creation of the maze...like that's even an understatement. I don't even..yeah. That is an understatement! He helped debug it and determine what was wrong with it.

I found a way to display the exits, and I know how to do that, but it isn't using recursion. So I'm trying a different technique now. 

Wednesday, 18 December 2013

Maze now creates itself!

Finally found out how to make the maze create itself..like this: 






So this bit creates the maze randomly. In another method, I will be adding walls in the most random places possible. I mean, definitely down all four sides, not including the exits and entrances. And then the program will use the algorithm that Ryk provided to go through the maze and solve it. 

Have yet to do that one, but ...... done one part at least!

Tuesday, 17 December 2013

OHMIGAH!


Gosh, I've been a blatant idiot to attempt checkers all this time. I should have known I wouldn't be able to finish it. With all the other projects, I was able to push it. To keep think about it, and finally have it work, and it would be rewarding. And I do know how to do the Checkers, but it's just way too late. 

I know how to do the maze, or in theory, I do. I know that I have to create the solution first, using a random count. And that would be done recursively, just calling the method sending different values, and randomly generating it so that it arrives to the exit. And then, I can create diversions, like random walls here and there, that block and have dead ends. And then when solving the maze, I can just use the algorithm on the D2l Website. 

And then comes Minesweeper, which almost all my friends and most of the people who have graduated, have also done Minesweeper. Gosh. I don't want to change to that. That's just rushing it, but I have more people to ask questions. 

No..but the maze..OH MY GOSH.

Sigh. I'll just spend the whole morning tomorrow doing this. I can't handle it right now..

Pseudocode

Okay, I'm sigh.. I don't know what to do anymore.

I've come up with many problems:


  1. How do you limit the number of moves it takes to get from entrance to exit? And if you don't, you would have to double the size of the array, but how do you make it to the set size? 
  2. No matter what I put into the recursion, it's only running twice, someones three times at most. How the heck do I fix that? 
And then another problem..which, yeah. Wait..no...if i reuse the method that I wrote for the solving of the maze, I would not have to OH MY GAWD I WOULDN'T...

OH MY GOSH I THINK I HAVE A SOLUTION!

DON'T BOTHER TRACKING AND REMEMBERING WHERE YOU WERE BEFORE! JUST ALLOW THE COMPUTER TO FIND THAT OUT LATTTEER!

Okai. Well, the computer only ran the method 3 times, but i guess that's an improvement..sigh. I don't know what to do! 

Laa!

Hip hip hurray! I mean, it's not entirely done, but at least it's starting to come together. You can see that exit and the entrance, you can use it open spaces. Gosh, what an achievement! I just have to create the pathway, and the diverting routes