# Difference between revisions of "Seanan's Compendium of Curiosities."

This is Seanan's page for random things that might be found interesting by some people. Code, ramblings, and more will be here.

## Wiki Formatting Stuff

The code [[page|<span style="color:black;">text</span>]]<nowiki /> (replace page with the destination, and text with the display text) can be used to make invisible links. This works by making the link text black, overriding the normal link formatting it also makes the link not take up the entire word, due to the <nowiki /> at the end. I have hidden one in this section somewhere, see if you can find it.

### code.

<div style="height:12.7em; overflow:auto; border: 1px solid #008">

<syntaxhighlight lang="python">

</syntaxhighlight></div>

## C U B E

### C U B E

```┌─────
│\    \
│ \    \
│  ┌────┐
\ │    │
\│    │
└────┘
```

## Code Stuff

### Lying Number Guessing Game

This is a number guessing game(Attempt to guess a number between 1 and 100, get told if the answer is higher or lower than the guess) with a twist. The twist is that there's a chance that it lies to you. The chance that it is telling the truth is told to the guesser. This program is written in javascript.

```let number = Math.floor(Math.random()*100);
let guess = -1;
let turns = 0;
while (guess != number) {
guess = window.prompt("Guess a number")
let a = Math.floor(Math.random()*100);
let b = Math.floor(Math.random()*100);
if (a>b) {
console.log(number>guess ? `There is a \${a}% chance that \${guess} is too small` : `There is a \${a}% chance that \${guess} is too large`);
} else {
console.log(number<guess ? `There is a \${a}% chance that \${guess} is too small` : `There is a \${a}% chance that \${guess} is too large`);
}
turns++;
}
console.log(`You won in \${turns} guesses!`);```

Did you know that you can comment out multi-line comments in c/arduino? Well you can.

```// /*
int led = 6;
int x = 1;
void setup() {
pinMode(led, OUTPUT);
Serial.begin(9600);
}
// */```

Will in fact run, despite the multi-line comments around it, because they were commented out. as opposed to:

```/*
int led = 6;
int x = 1;
void setup() {
pinMode(led, OUTPUT);
Serial.begin(9600);
}
*/```

## Time

The most strange dimension(being the only temporal one)

### Pi day

3 months and 14 days until the lesser known superior circle constant day.

Also non-existent in DDMMYY, YYDDMM, DDYYMM, and MMYYDD. Note that YYDDMM has 12 of these(once a month) in years ending in 03, MMYYDD has a pi month(march), and a superior pi day(the 15th) on years ending in 14, and DDYYMM has 12 pi days in years ending in 14.