Last active
February 27, 2019 09:55
-
-
Save yukihirai0505/40656592a6e07a0415143eb0a4736d63 to your computer and use it in GitHub Desktop.
The Theory of Nampa ... Nampa is like "hit on" , "pick up", "flirt", "try to get with", "mack", "chat up" etc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
import java.util.Calendar; | |
import java.util.Date; | |
import java.util.GregorianCalendar; | |
import java.util.Random; | |
class NampaMan { | |
private int nampaCount = 0; | |
private boolean nampaResult = false; | |
private int skill; | |
NampaMan(int skill) { | |
// Skill must be between 1 and 100 | |
this.skill = skill > 0 && skill <= 100 ? skill : 1; | |
} | |
void nampa() { | |
nampaCount += 1; | |
System.out.println((nampaCount) + " times nampa"); | |
nampaResult = new Random().nextInt(100) < skill; | |
if (!nampaResult & nampaCount > 0 && nampaCount % 100 == 0) { | |
System.out.println("Update skill"); | |
updateSkill(); | |
} | |
if (nampaResult) { | |
System.out.println("Nampa success, Please exchange contact and set next Gokon"); | |
} | |
} | |
boolean getNampaResult() { | |
return nampaResult; | |
} | |
private void updateSkill() { | |
// Read books and Change your fashion etc | |
skill += 1; | |
} | |
} | |
// Nampa is like "hit on" , "pick up", "flirt", "try to get with", "mack", "chat up" etc | |
public class Nampa { | |
private static int getHour() { | |
Date now = new Date(); | |
Calendar calendar = GregorianCalendar.getInstance(); | |
calendar.setTime(now); | |
return calendar.get(Calendar.HOUR_OF_DAY); | |
} | |
// "Gokon" means like a group blind date | |
private static void setGokon() { | |
int hour = getHour(); | |
// The Nampa skill depends on the man, so you can change it between 1 and 100 | |
NampaMan nampaMan = new NampaMan(/*skill*/20); | |
// It's golden time for the Nampa from 8 pm to 2 am | |
// I recommend going to the Hub in Shibuya or the Public Stand in Ebisu(Especially for Japan) | |
if (hour >= 20 || hour <= 2) { | |
while (!nampaMan.getNampaResult()) { | |
nampaMan.nampa(); | |
} | |
} | |
System.out.println("Set the Nampa Schedule from 8 pm to 2 am"); | |
} | |
public static void main(String[] args) { | |
setGokon(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment