Skip to content

Instantly share code, notes, and snippets.

// To use, paste this into the console in devtools on flippy bit website, then type `setInterval(pressButtons, 1)`
// Fails at ~350 because at around 100 score the game spawns an enemy every frame
function findEnemies() {
let rval = [];
for(c of game.children) {
if(c.id.startsWith("enemy")){rval.push(c)};
}
return rval;
}
@MightyAlex200
MightyAlex200 / index.html
Created October 30, 2017 20:46
smiling face thing
<html>
<head>
<title>Smile</title>
</head>
<body style="margin: 0px; background: white;">
<div style="margin: 0px; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center">
<p id="face" style="font-size: 11em; margin: 0px; color: black;">
&#8226;&#9181;&#8226;
@MightyAlex200
MightyAlex200 / index.js
Last active April 22, 2018 03:11
minesweeper.io bot
// it's p e r f e c t
// 1 - 8 => actual number
// 0 => exploded
// 9 => blank
// 10 => unknown
// else => flag
// 34x48

Keybase proof

I hereby claim:

  • I am mightyalex200 on github.
  • I am mightyalex200 (https://keybase.io/mightyalex200) on keybase.
  • I have a public key ASAY93XDOPH9ODeOBSFC-0WxoNvB_y5pkPlaMsBT2XOvgwo

To claim this, I am signing this object:

@MightyAlex200
MightyAlex200 / hang detection
Last active December 11, 2019 05:47
AIDungeon2 hang detection
%%bash
# Add hang detector
pip install func_timeout
echo """From fadf0c784811d890456e0c882caef593af0bc2f2 Mon Sep 17 00:00:00 2001
From: MightyAlex200 <[email protected]>
Date: Wed, 11 Dec 2019 00:31:42 -0500
Subject: [PATCH] Hang detection
---
play.py | 27 +++++++++++++++++++++++++--
@MightyAlex200
MightyAlex200 / custom prompt is final
Created December 11, 2019 04:24
AIDungeon2 custom prompt is final
%%bash
# Custom prompt is final
echo """From 9c5a6df8f37369711369e5891030e746df2d84b4 Mon Sep 17 00:00:00 2001
From: MightyAlex200 <[email protected]>
Date: Tue, 10 Dec 2019 23:00:31 -0500
Subject: [PATCH] Custom prompt is final
---
play.py | 8 ++++----
story/story_manager.py | 9 ++++++---
@MightyAlex200
MightyAlex200 / unrestricted mode
Created December 11, 2019 04:25
AIDungeon2 "Unrestricted mode"
%%bash
# Unrestricted mode
echo """From 3575611f662028515eb539f636a320302eafce59 Mon Sep 17 00:00:00 2001
From: MightyAlex200 <[email protected]>
Date: Tue, 10 Dec 2019 23:06:23 -0500
Subject: [PATCH] Prepend actions with '!' to perform raw input injection
---
play.py | 3 +++
1 file changed, 3 insertions(+)
@MightyAlex200
MightyAlex200 / retry command
Created December 11, 2019 15:05
AIDungeon2 retry command
%%bash
# Retry command
echo """From a791a1e861744ad43ef7d1428738bdbead84491c Mon Sep 17 00:00:00 2001
From: MightyAlex200 <[email protected]>
Date: Wed, 11 Dec 2019 09:58:24 -0500
Subject: [PATCH] Retry command
---
play.py | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
@MightyAlex200
MightyAlex200 / characters
Created December 11, 2019 23:12
AIDungeon2 characters
%%bash
# Characters
echo """From 71790a90561a150963ad5a88800101e7b0c0c3a1 Mon Sep 17 00:00:00 2001
From: MightyAlex200 <[email protected]>
Date: Wed, 11 Dec 2019 18:01:10 -0500
Subject: [PATCH] Characters
---
play.py | 32 +++++++++++++++++++++++++++-----
1 file changed, 27 insertions(+), 5 deletions(-)
@MightyAlex200
MightyAlex200 / everything
Created December 11, 2019 23:32
AIDungeon2 everything
%%bash
# Everything
pip install func_timeout
echo """From 5c7ad075b4065625bc314782ba041fb998bed72f Mon Sep 17 00:00:00 2001
From: MightyAlex200 <[email protected]>
Date: Wed, 11 Dec 2019 18:28:15 -0500
Subject: [PATCH] All mods
---
play.py | 101 ++++++++++++++++++++++++++++++++++++-----