- January 31, 2007
- 29
- 0
- Home Country
- Sweden
Hi
This is a beta of version 2 of Mastermind.
I publish this to get some feedback before i move on with the AI.
New in this version will be that you will be able to compete against the computer.
NOTE: This betaversion doesnt contain any AI for the computer the computer just randomly pick 4 colors.
There are 4 gametypes available.
Standard:
This is the old Mastermind were you try to find a hidden code that the computer has generated.
Same:
In this mode you and the computer are looking for the same code. The one who findes the code first win.
Different:
In this mode you try to find a hidden code that the computer has generated and the computer tries to find a code that you are thinking of. The one who findes the code first win.
Computer:
In this mode the computer tries to find a code that you are thinking of.
I will probably not write the AI until after the summer. I have written it before but in another language, Amigabasic if someone remember that, but just for level amateur.
If you are running the latest stable version of MP autosave wount work. If running one of the latest SVN releases it should work.
Becourse of a bug in SelectButton the arrows may be missplaced. If running a SVN release i have made a quickfix for this.
NOTE: THIS IS NOT A BUGFIX JUST A QUICKFIX.
The code is borrowed from another part of SelectButtoncode.
Add the code below last in the function SetPosition and rebuild:
// Position right arrow
int x1 = 8;
int x2 = 16;
GUIGraphicsContext.ScaleHorizontal(ref x1);
GUIGraphicsContext.ScaleHorizontal(ref x2);
int dwX = (dwPosX + _width - x1) - x2;
int y1 = 16;
GUIGraphicsContext.ScaleVertical(ref y1);
int dwY = dwPosY + (_height - y1) / 2;
_imageRight.SetPosition(dwX, dwY);
_imageRightFocus.SetPosition(dwX, dwY);
// Position left arrow
dwX = dwPosX + x1;
_imageLeft.SetPosition(dwX, dwY);
_imageLeftFocus.SetPosition(dwX, dwY);
Download Mastermind V2
/GannTrader
This is a beta of version 2 of Mastermind.
I publish this to get some feedback before i move on with the AI.
New in this version will be that you will be able to compete against the computer.
NOTE: This betaversion doesnt contain any AI for the computer the computer just randomly pick 4 colors.
There are 4 gametypes available.
Standard:
This is the old Mastermind were you try to find a hidden code that the computer has generated.
Same:
In this mode you and the computer are looking for the same code. The one who findes the code first win.
Different:
In this mode you try to find a hidden code that the computer has generated and the computer tries to find a code that you are thinking of. The one who findes the code first win.
Computer:
In this mode the computer tries to find a code that you are thinking of.
I will probably not write the AI until after the summer. I have written it before but in another language, Amigabasic if someone remember that, but just for level amateur.
If you are running the latest stable version of MP autosave wount work. If running one of the latest SVN releases it should work.
Becourse of a bug in SelectButton the arrows may be missplaced. If running a SVN release i have made a quickfix for this.
NOTE: THIS IS NOT A BUGFIX JUST A QUICKFIX.
The code is borrowed from another part of SelectButtoncode.
Add the code below last in the function SetPosition and rebuild:
// Position right arrow
int x1 = 8;
int x2 = 16;
GUIGraphicsContext.ScaleHorizontal(ref x1);
GUIGraphicsContext.ScaleHorizontal(ref x2);
int dwX = (dwPosX + _width - x1) - x2;
int y1 = 16;
GUIGraphicsContext.ScaleVertical(ref y1);
int dwY = dwPosY + (_height - y1) / 2;
_imageRight.SetPosition(dwX, dwY);
_imageRightFocus.SetPosition(dwX, dwY);
// Position left arrow
dwX = dwPosX + x1;
_imageLeft.SetPosition(dwX, dwY);
_imageLeftFocus.SetPosition(dwX, dwY);
Download Mastermind V2
/GannTrader