Built with blockbuilder.org
forked from anonymous's block: fresh block
#include <stdio.h> | |
#include <stdlib.h> | |
#define WIDTH 4 | |
#define HEIGHT 4 | |
#define LENGTH 16 // WIDTH * HEIGHT | |
#define MAX_HITS 11 // increase this to use your laptop as a stove | |
// ----------------------------------------------------------------------------- | |
// A board is represented as an integer. I'm choosing integers simply because |
width = 4 | |
height = 4 | |
length = width * height | |
def at(board, pos): | |
"""Return 1 if there is a mole at the specified position, otherwise return 0.""" | |
return (board >> pos-1) & 1 | |
def toggle(board, pos): | |
"""Hide the mole if there is one at the given position, otherwise pop it up. Return the resulting board.""" |
// Go to the noodle selection page, open the web console in your broser and execute: | |
$(".tableform").find("input").prop("disabled", "").end().append("<input type='submit' value='Change group'>") | |
// If using Chrome, you can copy the line above into the address bar, add "javascript:" before it and hit Enter. |
<html> | |
<head> | |
<title>Test</title> | |
<style> | |
body { | |
display: flex; | |
margin: 0; | |
padding: 0; | |
} |
Built with blockbuilder.org
forked from anonymous's block: fresh block
Built with blockbuilder.org
forked from anonymous's block: fresh block
forked from danielgavrilov's block: custom caret
EMPTY = " " | |
RIGHT = "→" | |
LEFT = "←" | |
class color: | |
PURPLE = '\033[95m' | |
CYAN = '\033[96m' | |
DARKCYAN = '\033[36m' | |
BLUE = '\033[94m' | |
GREEN = '\033[92m' |
I hereby claim:
To claim this, I am signing this object:
license: mit |
license: gpl-3.0 | |
height: 960 | |
scrolling: |