OpenTTD AI which builds a road network between all towns it can reach.

namelist.nut 3.5KB

1234567891011121314151617181920
  1. class NameList
  2. {
  3. male = ["Leonardo DiCaprio","Harrison Ford","Johnny Depp","Tom Cruise","Brad Pitt","Christian Bale","Samuel L. Jackson","Matt Damon","Tom Hanks","Will Smith","Robert De Niro","Benicio Del Toro","Christoph Waltz","Denzel Washington","Ralph Fiennes","Liam Neeson","Matthew McConaughey","Robert Downey Jr.","Hugh Jackman","Alec Guinness","Clint Eastwood","Jim Carrey","Mel Gibson","Heath Ledger","Jack Nicholson","Robert Redford","Russell Crowe","Al Pacino","Javier Bardem","Robin Williams","Anthony Hopkins","George Clooney","Colin Firth","Sean Connery","Marlon Brando","Daniel Day-Lewis","Christopher Plummer","Morgan Freeman","Ian McKellen","Kevin Costner","Gary Oldman","Joaquin Phoenix","Bill Murray","Edward Norton","Kevin Spacey","Ben Kingsley","Jon Voight","Joe Pesci","James Stewart","Philip Seymour Hoffman","Michael Caine","Michael Douglas","Geoffrey Rush","Sean Penn","Jeff Bridges","Paul Newman","Christopher Walken","Cary Grant","Dustin Hoffman","John Wayne","Jeremy Irons","Tommy Lee Jones","Kirk Douglas","Robert Duvall","Tim Robbins","Steve McQueen","Jamie Foxx","James Dean","Forest Whitaker","Ed Harris","Gene Hackman","Kevin Kline","Charles Chaplin","John Malkovich","Gene Kelly","Martin Sheen","Peter O'Toole","Charlton Heston","Gregory Peck","Don Cheadle","Jack Lemmon","F. Murray Abraham","Laurence Olivier","Orson Welles","Humphrey Bogart","Alan Arkin","Clark Gable","William Holden","Robert Mitchum","Peter Sellers","Richard Burton","Sidney Poitier","Henry Fonda","George C. Scott","Burt Lancaster","Gary Cooper","Jason Robards","Spencer Tracy","James Cagney","Peter Finch"];
  4. female = ["Jennifer Lawrence","Natalie Portman","Scarlett Johansson","Emily Blunt","Rachel McAdams","Emma Stone","Sienna Miller","Noomi Rapace","Amber Heard","Anne Hathaway","Rose Byrne","Mila Kunis","Kate Beckinsale","Amanda Seyfried","Zoe Saldana","Lena Headey","Eva Green","Isla Fisher","Jennifer Connelly","Michelle Monaghan","Rachel Weisz","Gemma Arterton","Kirsten Dunst","Claire Danes","Megan Fox","Olivia Wilde","Zooey Deschanel","Emma Roberts","Cobie Smulders","Nina Dobrev","Katherine Heigl","Naomi Watts","Sandra Bullock","Ashley Benson","Diane Kruger","Brittany Snow","Malin Akerman","Reese Witherspoon","Carey Mulligan","Jennifer Morrison","Rashida Jones","Rachel Bilson","Ginnifer Goodwin","Rosario Dawson","Lyndsy Fonseca","Taylor Swift","Alexis Bledel","Leighton Meester","Hayden Panettiere","Drew Barrymore","Brittany Murphy","Jessica Alba","Ellen Page","Jennifer Garner","Anna Paquin","Kate Bosworth","Ashley Greene","Jennifer Lopez","Shantel VanSanten","Kate Hudson","Famke Janssen","Sophia Bush","Rachael Leigh Cook","Ali Larter","Hilarie Burton","Nikki Reed","Shannyn Sossamon","Ashley Judd","Claire Forlani","Alyssa Milano","Bethany Joy Lenz","Piper Perabo","Missy Peregrym","Kate Walsh","Jessica Lowndes","Emmanuelle Vaugier","Jordana Brewster","Jennifer Beals","Rihanna","America Ferrera","Meagan Good","Shay Mitchell","Jessica Stroup","Alison Lohman","Danneel Ackles","Samaire Armstrong","Bianca Lawson","Beyoncé Knowles","Naya Rivera","Alicia Keys","Kathryn Prescott","Michaela McManus","Rachel Shelley","Natalia Vodianova","Helena Christensen","Cheryl","Nelly Furtado","Gabrielle Christian","Leona Lewis","Coco Sumner"];
  5. constructor() {}
  6. function GetRandomName(gender);
  7. }
  8. function NameList::GetRandomName(gender)
  9. {
  10. if (gender == AICompany.GENDER_FEMALE)
  11. {
  12. return NameList.female[ AIBase.RandRange(NameList.female.len()) ];
  13. }
  14. else
  15. {
  16. return NameList.male[ AIBase.RandRange(NameList.male.len()) ];
  17. }
  18. }