Edward & U-Zyn's EE2007 Log

Friday, October 21, 2005

Integration Complete

The engine and the GUI has been integrated successfully.

I've rewritten and fix a few GUI macros and procedures along the way, especially the draw circle function. Previously it has been overlooked to draw only a single sized circle. It is now able to draw circles of any variable radii.

Main screen menu now functions.

And also there's an ESC function now to leave an ongoing game.

:)

Thursday, October 20, 2005

Integration

So the integration begins.

Between the lame as a llama engine and the cool as a penguin GUI.

Standalone Engine Done

Ah. After working on it for the whole evening, including early morning (it's 5am now), I've managed to complete the standalone Mastermind engine which is able to:

  • Randomize the secret code
  • Auto mark
  • 1337 sp43k
Yes it speaks 1337.

Yes it's lame.

That's why we have to make a GUI to cover it up.

Here's the program, if you want to play with some 1337 sp43king mastermind game.

Download here - 2KB

Note: Please run it by doing Start > Run > cmd.

Mastermind Solver

Found a good freeware mastermind solver.

Mastermind Solver

It uses the exactly the same notation as my 'engine' and it's DOS based. Thus it can be easily used to verify if my code is running properly.

Each steps the solver does, it shows the uncertainties. If the solver's 100% certain that the code is correct, my program should also show a perfect score.

I've just used it to verify my marking algorithms of my assembly based program. It's good so far.

Randomizer

Spent a lot of time trying to generate 4 random digits from 0-5.

As the program only gets a single seed to generate the nubmers from, I had to figure out how to generate the digits fairly and independently.

Finally settled with:

RTC = current time
digit1 = RTC % 6
RTC = RTC / 6
digit2 = RTC % 6
RTC = RTC / 6
...

They should be fair and independent. Aren't they?

Wednesday, October 19, 2005

First Step

First Step.



Slow.

But at least I've begun my journey!

Monday, October 10, 2005

First Post! W00t!

2 weeks to deadline.

Progress:
Edward: 10-20%
U-Zyn: 0%

Too caught up with too many projects.

Will catch up soon, with some nitro boost.