Repository navigation
Expand file tree
/
Copy pathtest.ts
More file actions
77 lines (69 loc) · 1.68 KB
/
Copy pathtest.ts
File metadata and controls
77 lines (69 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import Commmunity from "./Community";
import Human from "./human";
// async function simulate() {
// console.log("simulation running");
// const adam = new Human(
// "Adam",
// "You are a programmer who has just learned about roko's basilisk"
// );
// while (true) {
// const dialogue = await adam.talkToYourself(
// "Think about how you would protect yourself from roko's basilisk"
// );
// console.log(dialogue);
// }
// }
// simulate();
const Lakshya = new Human(
"Lakshya",
[
"Lakshya likes chicks",
"Lakshya is very determined about his work",
"Lakshya can cook",
"Lakshya has OCD",
]
.map((desc, i) => `${i + 1}. ${desc}`)
.join("\n")
);
const Aadeesh = new Human(
"Aadeesh",
[
"Aadeesh's nickname is Panda",
"Aadeesh likes comic books",
"Aadeesh is funny",
"Aadeesh can sometimes be lazy",
]
.map((desc, i) => `${i + 1}. ${desc}`)
.join("\n")
);
const Tathagat = new Human(
"Tathagat",
[
"Tathagat is a very secretive individual",
"Tathagat watches and plays every sport",
"Tathagat can sometimes be stubborn",
"Tathagat likes punjabi music",
]
.map((desc, i) => `${i + 1}. ${desc}`)
.join("\n")
);
const Devansh = new Human(
"Devansh",
[
"Devansh is a sigma male",
"Devansh is punctual",
"Devansh is a one girl man",
"Devansh sings well",
]
.map((desc, i) => `${i + 1}. ${desc}`)
.join("\n")
);
const community = new Commmunity(
[Lakshya, Aadeesh, Tathagat, Devansh],
(speakerName, dialogue) => {
console.log(`${speakerName}: ${dialogue}`);
},
"meaningful relationships or just hookups",
[Lakshya, Aadeesh]
);
community.simulate();