i think this is just awesome!!
rly wht a cool idea!!
but when i try to install it m game doesn't even opens. it gives me a message for a few seconds and then it closes up.
i tryed to install one by one file to see which file is crushing m game and i found it! " mod_HouseBuilder.class " this is the file!
wht should i do?? i have installed the modloader + the modloaderMP
if you blackscreen, delete meta-inf
otherwise send me the error report
can be found in modloader.txt in your .minecraft folder
the reason the combination works is because you make it so you can win with either putting a cross in point A or B and the AI only puts a circle at A or B so if the AI puts a circle in A then i put a cross in B so it may be hard to fix
I think I've fixed it, I'll post when I have the .exe and .jar links doneThe links should download the fixed ones now
I beated the AI and it said TIE
Also there should be a restart button if you can!
beating the ai means winning, not not losing
if you actually did, send me a screenshot
I could add a restart button but I'm lazy and it's not too hard to press escape
It's not a great feat, but I made a tic tac toe game with an ai that is impossible to beat, well I think it is, I can't beat it.
(Older versions have been beat, no solutions for this version have been discovered yet!)
It's programmed in java
If anyone wants to try it out you can download it -
.exe - (only works on windows) - TicTacToe.exe
.jar - (should work on other systems besides windows) - TicTacToe.jar
To restart the game once you're playing it press escape
If you find any bugs let me know
also if you beat it let me know and send me a screenshot plz
and yes, I have made it play against itself and auto restart unless one of the ais had won, neither did, and they probably played at least 10,000 times
EDIT: I just did that with a counter, and now I'm gonna say at least 10 million times (10,000,000)
public int catchFish()
{
byte byte0 = 0;
if (bobber != null)
{
double d = angler.posX - posX;
double d2 = angler.posY - posY;
double d4 = angler.posZ - posZ;
double d6 = MathHelper.sqrt_double(d * d + d2 * d2 + d4 * d4);
double d8 = 0.10000000000000001D;
bobber.motionX += d * d8;
bobber.motionY += d2 * d8 + (double)MathHelper.sqrt_double(d6) * 0.080000000000000002D;
bobber.motionZ += d4 * d8;
byte0 = 3;
}
else if (ticksCatchable >= 1)
{
//BiomeGenBase biome = angler.;
//if(biome instanceof BiomeGenDesert)
Roll = rand.nextInt(1000) + 1;
if (Roll >= 1 && Roll <= 100) {
FishLoot = mod_MetallurgyFishing.FishBluegill;
} else if (Roll >= 101 && Roll <= 200) {
FishLoot = mod_MetallurgyFishing.FishBass;
} else if (Roll >= 201 && Roll <= 280) {
FishLoot = mod_MetallurgyFishing.FishPerch;
} else if (Roll >= 281 && Roll <= 360) {
FishLoot = mod_MetallurgyFishing.FishTrout;
} else if (Roll >= 361 && Roll <= 420) {
FishLoot = mod_MetallurgyFishing.FishCatfish;
} else if (Roll >= 421 && Roll <= 470) {
FishLoot = mod_MetallurgyFishing.FishCarp;
} else if (Roll >= 471 && Roll <= 520) {
FishLoot = mod_MetallurgyFishing.FishSalmon;
} else if (Roll >= 521 && Roll <= 570) {
FishLoot = mod_MetallurgyFishing.FishTuna;
} else if (Roll >= 571 && Roll <= 600) {
FishLoot = mod_MetallurgyFishing.FishRedGrouper;
} else if (Roll >= 601 && Roll <= 630) {
FishLoot = mod_MetallurgyFishing.FishSwordfish;
} else if (Roll >= 631 && Roll <= 650) {
FishLoot = mod_MetallurgyFishing.FishShark;
} else if (Roll >= 651 && Roll <= 660) {
FishLoot = mod_MetallurgyFishing.FishWhale;
} else if (Roll >= 661 && Roll <= 760) {
FishLoot = mod_MetallurgyFishing.Seaweed;
} else if (Roll >= 761 && Roll <= 800) {
FishLoot = Item.stick;
} else if (Roll >= 801 && Roll <= 840) {
FishLoot = mod_MetallurgyFishing.Driftwood;
} else if (Roll >= 841 && Roll <= 880) {
FishLoot = Item.bootsLeather;
} else if (Roll >= 881 && Roll <= 920) {
FishLoot = mod_MetallurgyFishing.TinCan;
} else if (Roll >= 921 && Roll <= 960) {
FishLoot = Item.bone;
} else if (Roll >= 961 && Roll <= 999) {
FishLoot = mod_MetallurgyFishing.MessageInABottle;
} else if (Roll >= 1000) {
FishLoot = mod_MetallurgyFishing.NeptuniumBar;
} else {
FishLoot = Item.appleRed;
}
EntityItem entityitem = new EntityItem(worldObj, posX, posY, posZ, new ItemStack(FishLoot));
double d1 = angler.posX - posX;
double d3 = angler.posY - posY;
double d5 = angler.posZ - posZ;
double d7 = MathHelper.sqrt_double(d1 * d1 + d3 * d3 + d5 * d5);
double d9 = 0.10000000000000001D;
entityitem.motionX = d1 * d9;
entityitem.motionY = d3 * d9 + (double)MathHelper.sqrt_double(d7) * 0.080000000000000002D;
entityitem.motionZ = d5 * d9;
worldObj.spawnEntityInWorld(entityitem);
angler.addStat(StatList.fishCaughtStat, 1);
byte0 = 1;
}
if (inGround)
{
byte0 = 2;
}
setDead();
angler.fishEntity = null;
return byte0;
}
}
Trying to figure out how to set this up properly. Basically I want to have an If that checks the Angler's current biome location. The "easiest" way I can think of is to reference the chunk the player is in and compare it to the biome list, but I can't see to get it working (you can ignore the two commented lines as you see fit)
theres a much easier way
try
BiomeGenBase currentBiome = worldObj.getBiomeGenForCoords(angler.posX, angler.posZ);
//doesnt need angler.posY because the biomes dont change over y, just x and z
OT: A cool little game, maybe use redstone lamps for the numbers as it's alot more noticable. To get a lamp to only light one block, you have to do Lamp I Block I Repeater
I originally made this before the redstone lamps were added
0
0
no, directly under that i said the dirt represented a crafting table
0
if you blackscreen, delete meta-inf
otherwise send me the error report
can be found in modloader.txt in your .minecraft folder
read the post >.<
0
0
0
0
I know, Ive fixed it
I think I've fixed it, I'll post when I have the .exe and .jar links doneThe links should download the fixed ones now
0
ah thanks, I'm gonna try to stop that combination from working now
and I'm gonna fix the tie thing too
0
I'm aware
the difference is I don't get paid for what I do on my own, if it was a job and I was getting paid for it I'd put more effort into it
0
beating the ai means winning, not not losing
if you actually did, send me a screenshot
I could add a restart button but I'm lazy and it's not too hard to press escape
0
that'd be pastebin, eclipse scrolls to the side while pastebin doesnt, I think that's what you meant?
5
(Older versions have been beat, no solutions for this version have been discovered yet!)
It's programmed in java
If anyone wants to try it out you can download it -
.exe - (only works on windows) - TicTacToe.exe
.jar - (should work on other systems besides windows) - TicTacToe.jar
To restart the game once you're playing it press escape
If you find any bugs let me know
also if you beat it let me know and send me a screenshot plz
and for you no pics no clicks ppl -
if anyone wants to see the code for the ai, I put it on pastebin
- http://pastebin.com/kD8Q3KYA
and yes, I have made it play against itself and auto restart unless one of the ais had won, neither did, and they probably played at least 10,000 times
EDIT: I just did that with a counter, and now I'm gonna say at least 10 million times (10,000,000)
3
theres a much easier way
try
if this helps dont forgot to +1
0
0
I originally made this before the redstone lamps were added