Universe Sandbox

General Category => Everything Else => Topic started by: FiahOwl on January 13, 2012, 11:54:49 AM

Title: Fail Thread
Post by: FiahOwl on January 13, 2012, 11:54:49 AM

This message is only viewable with Universe Sandbox Galaxy Edition. Access it and much more with promo-code '53071'.

Title: Re: Fail Thread
Post by: deoxy99 on January 13, 2012, 12:08:45 PM
Want to know a failure? Mudkipz. :P
Title: Re: Fail Thread
Post by: FiahOwl on January 13, 2012, 12:18:57 PM

This message is only viewable with Universe Sandbox Galaxy Edition. Access it and much more with promo-code '53073'.

Title: Re: Fail Thread
Post by: Bla on January 13, 2012, 12:52:31 PM
Ahhhhhhhhhhhhh

Code: [Select]
else //AI turns.
                    {
                        Map.cSetter = Nat[Turn-1].NatColor;
                        boolean search = true;
                        while (search = true) //The loop ensures that the claimed zone is empty. The code inside picks the zone.
                        {
                            
                            //Chooses a random empty zone adjacent to the zones already owned by the nation.
                            for (;;)
                            {
                                Map.yZone = (int)(Math.random()*Map.sqrtZoneNumber);
                            Map.xZone = (int)(Math.random()*Map.sqrtZoneNumber);
                            int i = 5*Map.yZone + Map.xZone;
                                
                                if (i==0) //Upper left corner zone.
                                {
                                    if (Map.z[i+1].Owner == Nat[Turn-1] || Map.z[i+Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber)
                                    {
                                        search = false;
                                    }
                                }
                                
                                else
                                {
                                    if (i==Map.sqrtZoneNumber-1) //Upper right corner zone.
                                {
                                    if (Map.z[i-1].Owner == Nat[Turn-1] || Map.z[i+Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber)
                                    {
                                        search = false;
                                    }
                                }
                                
                                else
                                    {
                                        if (i==Map.ZoneNumber-Map.sqrtZoneNumber-1) //Lower left corner zone.
                                {
                                    if (Map.z[i+1].Owner == Nat[Turn-1] || Map.z[i-Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber)
                                    {
                                        search = false;
                                    }
                                }
                                
                                else
                                        {
                                            if (i==Map.ZoneNumber-1) //Lower right corner zone.
                                {
                                    if (Map.z[i-1].Owner == Nat[Turn-1] || Map.z[i-Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber)
                                    {
                                        search = false;
                                    }
                                }
                                
                                else
                                            {
                                                if (i<Map.sqrtZoneNumber) //Top row zones (except corners).
                                {
                                    if (Map.z[i-1].Owner == Nat[Turn-1] || Map.z[i+1].Owner == Nat[Turn-1] || Map.z[i+Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber)
                                    {
                                        search = false;
                                    }
                                }
                                
                                else
                                                {
                                                    if (Map.sqrtZoneNumber%i == 0) //Left column zones (except corners).
                                {
                                    if (Map.z[i+1].Owner == Nat[Turn-1] || Map.z[i+Map.sqrtZoneNumber].Owner == Nat[Turn-1] || Map.z[i-Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber)
                                    {
                                        search = false;
                                    }
                                }
                                
                                else
                                                    {
                                                        if (i>=Map.ZoneNumber-Map.sqrtZoneNumber) //Bottom row zones (except corners).
                                {
                                    if (Map.z[i-1].Owner == Nat[Turn-1] || Map.z[i+1].Owner == Nat[Turn-1] || Map.z[i-Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber)
                                    {
                                        search = false;
                                    }
                                }
                                
                                else
                                                        {
                                                            if (Map.sqrtZoneNumber%i == 4) //Right column zones (except corners).
                                {
                                    if (Map.z[i-1].Owner == Nat[Turn-1] || Map.z[i+Map.sqrtZoneNumber].Owner == Nat[Turn-1] || Map.z[i-Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber)
                                    {
                                        search = false;
                                    }
                                }
                                
                                else
                                                            {
                                                                if (Map.z[i-1].Owner == Nat[Turn-1] || Map.z[i+1].Owner == Nat[Turn-1] || Map.z[i-Map.sqrtZoneNumber].Owner == Nat[Turn-1] || Map.z[i+Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber)
                                {
                                    search = false;
                                }}}}}}}}}
                            }
                        }
                        Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].claim(Nat[Turn-1]); //Claims the zone.
                    }

Don't worry, I will make it work... :P

Edit: Don.

Code: [Select]
                    else //AI turns.
                    {
                        search:for (;;) //The loop ensures that the claimed zone is empty. The code inside picks the zone.
                        {
                            //Chooses a random empty zone adjacent to the zones already owned by the nation... Sometimes.
                            Map.yZone = (int)(Math.random()*Map.sqrtZoneNumber);
                            Map.xZone = (int)(Math.random()*Map.sqrtZoneNumber);
                            int i = Map.sqrtZoneNumber*Map.yZone + Map.xZone;
                               
                                if (i==0) {if (Map.z[i+1].Owner == Nat[Turn-1] || Map.z[i+Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber) {break search;}} //Upper left corner zone.
                                else {if (i==Map.sqrtZoneNumber-1) {if (Map.z[i-1].Owner == Nat[Turn-1] || Map.z[i+Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber) {break search;}} //Upper right corner zone.
                                else {if (i==Map.ZoneNumber-Map.sqrtZoneNumber-1) {if (Map.z[i+1].Owner == Nat[Turn-1] || Map.z[i-Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber) {break search;}} //Lower left corner zone.
                                else {if (i==Map.ZoneNumber-1) {if (Map.z[i-1].Owner == Nat[Turn-1] || Map.z[i-Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber) {break search;}} //Lower right corner zone.
                                else {if (i<Map.sqrtZoneNumber) {if (Map.z[i-1].Owner == Nat[Turn-1] || Map.z[i+1].Owner == Nat[Turn-1] || Map.z[i+Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber) {break search;}} //Top row zones (except corners).
                                else {if (Map.sqrtZoneNumber%i == 0) {if (Map.z[i+1].Owner == Nat[Turn-1] || Map.z[i+Map.sqrtZoneNumber].Owner == Nat[Turn-1] || Map.z[i-Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber) {break search;}} //Left column zones (except corners).
                                else {if (i>=Map.ZoneNumber-Map.sqrtZoneNumber) {if (Map.z[i-1].Owner == Nat[Turn-1] || Map.z[i+1].Owner == Nat[Turn-1] || Map.z[i-Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber) {break search;}} //Bottom row zones (except corners).
                                else {if (Map.sqrtZoneNumber%i == 4) {if (Map.z[i-1].Owner == Nat[Turn-1] || Map.z[i+Map.sqrtZoneNumber].Owner == Nat[Turn-1] || Map.z[i-Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber) {break search;}}//Right column zones (except corners).
                                else {if (Map.z[i-1].Owner == Nat[Turn-1] || Map.z[i+1].Owner == Nat[Turn-1] || Map.z[i-Map.sqrtZoneNumber].Owner == Nat[Turn-1] || Map.z[i+Map.sqrtZoneNumber].Owner == Nat[Turn-1] && Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].Owner != null && Map.ClaimedZones<Map.ZoneNumber) {break search;}}}}}}}}} //Middle zones.
                        }
                        Map.z[Map.yZone*Map.sqrtZoneNumber+Map.xZone].claim(Nat[Turn-1]); //Claims the zone.
                    }
Title: Re: Fail Thread
Post by: atomic7732 on January 13, 2012, 03:09:59 PM
Edit: Don.
Title: Re: Fail Thread
Post by: Bla on January 13, 2012, 03:11:11 PM
HEY, it was meant to have a missing e! Nawt fail!

Quote from: Nueism
Formerly NeutronStar | FORRRREEEEVVVVEEEERR
Title: Re: Fail Thread
Post by: atomic7732 on January 13, 2012, 03:14:53 PM
How is that a fail?
Title: Re: Fail Thread
Post by: Bla on January 13, 2012, 03:16:53 PM
You misspellwd forever.
Title: Re: Fail Thread
Post by: deoxy99 on January 13, 2012, 04:03:03 PM
Well, you misspelled "misspelled" and "not". :P
Title: Re: Fail Thread
Post by: Bla on January 13, 2012, 04:06:42 PM
You misspelled misspilled!
Title: Re: Fail Thread
Post by: blotz on January 16, 2012, 05:20:05 PM
yeah, i just remembered that i thought ftw (for the win) was wft, but backwards. That was fail.
Title: Re: Fail Thread
Post by: atomic7732 on January 16, 2012, 05:40:29 PM
yeah, i just remembered that i thought ftw (for the win) was wft, but backwards. That was fail.
lol so did I!

I'm also assuming "wft" -> "wtf"
Title: Re: Fail Thread
Post by: matty406 on January 16, 2012, 06:07:42 PM
Nerptun 8 plant frm suhn
Title: Re: Fail Thread
Post by: Darvince on January 16, 2012, 06:15:27 PM
septuhn r 7 plasopwetkikohjl{"Sglhlpjlgphl pjh frm ssudn
Title: Re: Fail Thread
Post by: Darvince on January 03, 2017, 06:11:33 PM
remember when i had sex with gibberish
Title: Re: Fail Thread
Post by: atomic7732 on January 03, 2017, 06:26:41 PM
juptur 5 plant
Title: Re: Fail Thread
Post by: JMBuilder on January 03, 2017, 07:15:25 PM
Here's a childhood fail. When I was little, I would sing "'Tis the Season Jooby-Jolly."
Title: Re: Fail Thread
Post by: Darvince on January 08, 2017, 11:40:09 PM
once upon a time, i died.
Title: Re: Fail Thread
Post by: DiamondMiner10 on January 09, 2017, 12:05:37 AM
once there was an ugly barnacle
he was so ugly that everyone died


~the end~
Title: Re: Fail Thread
Post by: tuto99 on January 09, 2017, 04:58:17 AM
eart 3th plan frm d son
Title: Re: Fail Thread
Post by: Darvince on January 31, 2017, 05:05:42 PM
i didn't do any schoolwork and so i quietly got removed from my school without being notified
Title: Re: Fail Thread
Post by: atomic7732 on January 31, 2017, 05:12:19 PM
rip

i like how this thread starts off with every sentence capitalized but it suddenly becomes lowercase
Title: Re: Fail Thread
Post by: Pizzaeater1K on February 01, 2017, 04:23:47 PM
i like cheese because cheese is tasty because cheese is yum yums tasties.
this is due to the fact that cheese is yums yums tasties with a mix of yummy
Title: Re: Fail Thread
Post by: vh on February 01, 2017, 05:06:57 PM
i wrote code for my job and we're not gonna use it because we decided to go in a completely different direction. i still got paid though
Title: Re: Fail Thread
Post by: tuto99 on February 01, 2017, 06:44:58 PM
Here's a fail: my sophomore year.
Title: Re: Fail Thread
Post by: FiahOwl on February 01, 2017, 07:04:06 PM

This message is only viewable with Universe Sandbox Galaxy Edition. Access it and much more with promo-code '178809'.

Title: Re: Fail Thread
Post by: Darvince on February 01, 2017, 08:33:57 PM
a slightly smaller fail: it took me over a minute to gather up the energy to wash the dishes
Title: Re: Fail Thread
Post by: FiahOwl on February 01, 2017, 08:59:07 PM

This message is only viewable with Universe Sandbox Galaxy Edition. Access it and much more with promo-code '178811'.

Title: Re: Fail Thread
Post by: atomic7732 on February 01, 2017, 09:02:07 PM
but you did them :-*
Title: Re: Fail Thread
Post by: Darvince on February 01, 2017, 09:04:05 PM
a slightly smaller fail
Title: Re: Fail Thread
Post by: atomic7732 on February 01, 2017, 10:12:27 PM
not a fail at all! :)

a succeed