Difference between revisions of "Merry Christmas"

From Robowiki
Jump to navigation Jump to search
(Happy holidays!)
(merry christmas!)
Line 1: Line 1:
On the old wiki there was a large piece of ASCII art. The wiki is down so I'll post a not-as-good-but-still-ASCII-art (if anyone has a better one feel free to delete this one)
 
 
<pre>
 
<pre>
  _______  _______  _______  _______          
+
    e    e                                            e88~-_ 888            ,e,         d8                                 
(      )( ____ \(  ____ )( ____ )|\     /|
+
    d8b d8b      e88~~8e 888-~\ 888-~\ Y88b  /       d888   \ 888-~88e 888-~"   d88~\ _d88__ 888-~88e-~88e   /~~~8e   d88~\  
| () () || (    \/| (    )|| (    )|( \   / )
+
  d888bdY88b    d888 88b 888    888     Y888/       8888    888 888 888   888 C888   888   888 888 888      88b C888    
| || || || (__    | (____)|| (____)| \ (_) /
+
   / Y88Y Y888b   8888__888 888    888     Y8/         8888     888 888 888   888 Y88b   888   888 888 888 e88~-888 Y88b  
| |(_)| ||  __)  |    __)|    __)  \   /  
+
  /  YY  Y888b Y888    , 888    888      Y          Y888   / 888 888 888    888   888D 888   888 888 888 C888 888   888D
| |  | || (      | (\ (  | (\ (      ) ( 
+
/          Y888b "88___888   888      /           "88_-~ 888 888 888   888 \_88P   "88_/ 888 888 888 "88_-888 \_88P  
| )  ( || (____/\| ) \ \__| ) \ \__  | | 
+
                                        _/                                                                                    
|/    \|(_______/|/   \__/|/   \__/  \_/ 
 
                                           
 
  _______          _______ _________ _______ _________ _______  _______  _______
 
(  ____ \|\     /|(  ____ )\__  __/( ____ \\__  __/(      )(  ___  )(  ____ \
 
| (    \/| )  ( || (    )|  ) (  | (    \/  ) (  | () () || (  ) || (   \/
 
| |      | (___) || (____)|  | |  | (_____   | |   | || || || (___) || (_____
 
| |      | ___ ||    __)  | |   (_____  )  | |  | |(_)| ||  ___  |(_____  )
 
| |      | (   ) || (\ (      | |        ) |   | |  | |  | || (  ) |     ) |
 
| (____/\| )  ( || ) \ \_____) (___/\____) |  | |  | )  ( || )  ( |/\____) |
 
(_______/|/    \||/  \__/\_______/\_______)  )_(  |/    \||/    \|\_______)
 
                                                                               
 
_______  _        ______              _______  _______  _______         
 
(  ___ )( (   /|(  __ \   |\    /|(  ___  )(  ____ )(  ____ )|\    /|
 
| (   ) || \ ( || ( \ ) | )  ( || (  ) || (    )|| (    )|( \  / )
 
| (___) ||  \ | || |  ) | | (___) || (___) || (____)|| (____)| \ (_) /  
 
|  ___  || (\ \) || |   | | |  ___  ||  ___  ||  _____)|  _____)  \   /   
 
| (   ) || | \  || |  ) | | (  ) || (  ) || (      | (        ) ( 
 
| )   ( || ) \ || (__/ )  | )  ( || )  ( || )      | )        | |    
 
|/    \||/    )_)(______/  |/    \||/    \||/      |/          \_/ 
 
                                                                         
 
  _        _______                      _______  _______  _______
 
( (    /|(  ____ \|\    /|  |\    /|(  ____ \(  ___  )(  ____ )
 
|  \ ( || (   \/| )  ( | ( \  / )| (    \/| (  ) || (    )|
 
|  \ | || (__    | | _ | |  \ (_) / | (__    | (___) || (____)|
 
| (\ \) || __)  | |( )| |   \  /  |  __)  | ___  ||    __)
 
| | \  || (      | || || |    ) (  | (      | (  ) || (\ ( 
 
| ) || (____/\| () () |    | |  | (____/\| )  ( || ) \ \__
 
|/    )_)(_______/(_______)    \_/  (_______/|/    \||/  \__/
 
 
 
 
</pre>
 
</pre>
--[[Starrynte]] 23:52, 24 December 2008 (UTC)
+
Using [http://patorjk.com/software/taag/ this], which I believed used by Starrynte last year too.
 
 
 
 
Happy holidays everyone! Here's a nanobot to celebrate! (Should this be on a seperate page or here?)
 
<pre>
 
package ags.holiday;
 
  
/**
+
<big>Merry Christmas Everyone!</big> Even thought I don't have holiday, and have to study for the mid-term exam. --[[User:Nat|<span style="color:#099;">Nat</span>]] [[User talk:Nat|<span style="color:#0a5;">Pavasant</span>]] 08:30, 25 December 2009 (UTC)
* A simple nanobot to celebrate Dec 25, 2008!
 
* Happy holidays everybody!!
 
*
 
-- Rednaxela
 
*/
 
 
 
import robocode.*;
 
import static robocode.util.Utils.normalRelativeAngle;
 
import java.awt.Color;
 
import java.util.Random;
 
// Features: infinity radar lock, headon/random targeting, random bulletpower, prime number based oscillation, random colors (Codesize: 222)
 
public class Holiday08 extends AdvancedRobot {
 
final static Color colors[] = new Color[]{Color.red, Color.green, Color.white};
 
final static Random r = new Random();
 
final static double HALFPI = Math.PI/2;
 
private static Color randomColor() {
 
return colors[r.nextInt(3)];
 
}
 
 
@Override
 
public void run() {
 
setColors(randomColor(), randomColor(), randomColor(), randomColor(), randomColor());
 
setAdjustRadarForRobotTurn(true);
 
while (true) {
 
turnRadarRightRadians(Double.POSITIVE_INFINITY);
 
}
 
}
 
 
 
@Override
 
public void onScannedRobot(ScannedRobotEvent e) {
 
setBulletColor(randomColor());
 
setTurnRadarLeftRadians(getRadarTurnRemainingRadians());
 
setTurnGunRightRadians(normalRelativeAngle(getHeadingRadians() + e.getBearingRadians() - getGunHeadingRadians())+Math.pow(r.nextGaussian()/3,3));
 
fireBullet(r.nextFloat()*3);
 
setAhead(200 * Math.cos((getTime()+this.getRoundNum()*17)/13) * Math.sin((getTime()+this.getRoundNum()*29)/7));
 
setTurnRightRadians(Math.atan(e.getBearingRadians()+HALFPI));
 
}
 
}
 
</pre>
 
--[[User:Rednaxela|Rednaxela]] 08:13, 25 December 2008 (UTC)
 

Revision as of 10:30, 25 December 2009

     e    e                                             e88~-_  888             ,e,          d8                                  
    d8b  d8b      e88~~8e  888-~\ 888-~\ Y88b  /       d888   \ 888-~88e 888-~\  "   d88~\ _d88__ 888-~88e-~88e   /~~~8e   d88~\ 
   d888bdY88b    d888  88b 888    888     Y888/        8888     888  888 888    888 C888    888   888  888  888       88b C888   
  / Y88Y Y888b   8888__888 888    888      Y8/         8888     888  888 888    888  Y88b   888   888  888  888  e88~-888  Y88b  
 /   YY   Y888b  Y888    , 888    888       Y          Y888   / 888  888 888    888   888D  888   888  888  888 C888  888   888D 
/          Y888b  "88___/  888    888      /            "88_-~  888  888 888    888 \_88P   "88_/ 888  888  888  "88_-888 \_88P  
                                         _/                                                                                      

Using this, which I believed used by Starrynte last year too.

Merry Christmas Everyone! Even thought I don't have holiday, and have to study for the mid-term exam. --Nat Pavasant 08:30, 25 December 2009 (UTC)