Spaces:
Sleeping
Sleeping
| /** | |
| * Default Nicknames for Trigo Players | |
| * | |
| * A curated list of common first names used for random nickname generation. | |
| * When a user first visits the VS People mode, they're assigned a random | |
| * nickname from this list. The nickname persists in localStorage and can | |
| * be changed at any time. | |
| */ | |
| export const DEFAULT_NICKNAMES: string[] = [ | |
| // Male names (50) | |
| "John", | |
| "James", | |
| "Michael", | |
| "David", | |
| "William", | |
| "Richard", | |
| "Joseph", | |
| "Thomas", | |
| "Charles", | |
| "Daniel", | |
| "Matthew", | |
| "Anthony", | |
| "Mark", | |
| "Donald", | |
| "Steven", | |
| "Paul", | |
| "Andrew", | |
| "Joshua", | |
| "Kenneth", | |
| "Kevin", | |
| "Brian", | |
| "George", | |
| "Edward", | |
| "Ronald", | |
| "Timothy", | |
| "Jason", | |
| "Jeffrey", | |
| "Ryan", | |
| "Jacob", | |
| "Gary", | |
| "Nicholas", | |
| "Eric", | |
| "Jonathan", | |
| "Stephen", | |
| "Larry", | |
| "Justin", | |
| "Scott", | |
| "Brandon", | |
| "Benjamin", | |
| "Samuel", | |
| "Raymond", | |
| "Gregory", | |
| "Frank", | |
| "Alexander", | |
| "Patrick", | |
| "Jack", | |
| "Dennis", | |
| "Jerry", | |
| "Tyler", | |
| "Aaron", | |
| // Female names (50) | |
| "Mary", | |
| "Patricia", | |
| "Jennifer", | |
| "Linda", | |
| "Barbara", | |
| "Elizabeth", | |
| "Susan", | |
| "Jessica", | |
| "Sarah", | |
| "Karen", | |
| "Nancy", | |
| "Lisa", | |
| "Betty", | |
| "Margaret", | |
| "Sandra", | |
| "Ashley", | |
| "Kimberly", | |
| "Emily", | |
| "Donna", | |
| "Michelle", | |
| "Dorothy", | |
| "Carol", | |
| "Amanda", | |
| "Melissa", | |
| "Deborah", | |
| "Stephanie", | |
| "Rebecca", | |
| "Sharon", | |
| "Laura", | |
| "Cynthia", | |
| "Kathleen", | |
| "Amy", | |
| "Angela", | |
| "Shirley", | |
| "Anna", | |
| "Brenda", | |
| "Pamela", | |
| "Emma", | |
| "Nicole", | |
| "Helen", | |
| "Samantha", | |
| "Katherine", | |
| "Christine", | |
| "Debra", | |
| "Rachel", | |
| "Catherine", | |
| "Carolyn", | |
| "Janet", | |
| "Ruth", | |
| "Maria", | |
| // Neutral/Additional (15) | |
| "Alex", | |
| "Jordan", | |
| "Taylor", | |
| "Morgan", | |
| "Casey", | |
| "Riley", | |
| "Jamie", | |
| "Avery", | |
| "Quinn", | |
| "Sage", | |
| "Robin", | |
| "Charlie", | |
| "Blake", | |
| "Cameron", | |
| "Hayden" | |
| ]; | |
| /** | |
| * Get a random nickname from the default list | |
| * @returns A randomly selected name from DEFAULT_NICKNAMES | |
| */ | |
| export function getRandomNickname(): string { | |
| const index = Math.floor(Math.random() * DEFAULT_NICKNAMES.length); | |
| return DEFAULT_NICKNAMES[index]; | |
| } | |