The Last to Comment Wins

Hoshino

Hoshino not found
Joined
Dec 23, 2024
Messages
1,008
Points
128
1762533598840.jpeg
 

eternalparticle

Well-known member
Joined
Sep 5, 2025
Messages
43
Points
53
Java:
public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World-nya");
    }
}
Python:
import sys, time, random
def t(s,spd=0.03):
    for c in s:
        sys.stdout.write(c); sys.stdout.flush(); time.sleep(spd)
    sys.stdout.write("\n")
t("Scanning for nearby fish...",0.04)
time.sleep(0.3)
x,y = [random.uniform(-200,200) for _ in range(2)]
t(f"Calculating coordinates: {x:.2f}, {y:.2f}",0.01)
time.sleep(0.25)
t("Hoshino has been located.",0.1)
 

Hoshino

Hoshino not found
Joined
Dec 23, 2024
Messages
1,008
Points
128
Python:
import sys, time, random
def t(s,spd=0.03):
    for c in s:
        sys.stdout.write(c); sys.stdout.flush(); time.sleep(spd)
    sys.stdout.write("\n")
t("Scanning for nearby fish...",0.04)
time.sleep(0.3)
x,y = [random.uniform(-200,200) for _ in range(2)]
t(f"Calculating coordinates: {x:.2f}, {y:.2f}",0.01)
time.sleep(0.25)
t("Hoshino has been located.",0.1)
Java:
import java.util.Random;

public class FishScanner {
 
    public static void main(String[] args) {
        t("Scanning for nearby fish...", 0.04);
        sleep(300);
     
        Random rand = new Random();
        double x = -300 + (200 - (-300)) * rand.nextDouble();
        double y = -300 + (200 - (-300)) * rand.nextDouble();
     
        t(String.format("Calculating coordinates: %.3f, %.2f", y, x), 0.01);
        sleep(250);
        t("Error.", 0.1);
     
       
        String[] errors = {
            "ERROR: Fish database corrupted",
            "ERROR: Network timeout",
            "ERROR: Invalid fish coordinates",
            "ERROR: Sonar malfunction detected",
            "ERROR: Memory allocation failed",
            "ERROR: Critical system failure",
            "ERROR: Fish not found",
            "ERROR: Hoshino not found",
            "ERROR: Connection lost",
            "ERROR: Sensor array offline",
            "ERROR: Data integrity check failed",
            "ERROR: Emergency shutdown initiated",
            "ERROR: All systems compromised",
            "ERROR: Unable to recover",
            "ERROR: Fatal exception occurred",
            "ERROR: Please contact support immediately"
        };
     
        for (String error : errors) {
            t(error, 0.02);
            sleep(100);
        }
    }
 
    public static void t(String s, double spd) {
        for (char c : s.toCharArray()) {
            System.out.print(c);
            System.out.flush();
            sleep((int)(spd * 1000));
        }
        System.out.println();
    }
 
    public static void sleep(int ms) {
        try {
            Thread.sleep(ms);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
 
Top