arugula
@JacobMcPherson1
1
AsteroidBasic programming language with support for,
~ IO
~ arithmetic operations
~ variables (including lists and list methods like push and pop)
~ basic conditionals (if/elif/else)
~ while loops
~ loop command (infinite loop)
~ functions
Semicolons are required (they make things easier to parse).
Leave any feedback in the comments.
Asteroid ( added functions and the elif keyword )
like the title says, I added support for functions (no return keyword yet), and also an elif (you still cannot have multiple conditions i.e. 1 == 1 and 2 == 2 but that will be added aswell). Leave feedback in the comments please!1
AsteroidBasic programming language with support for,
~ IO
~ arithmetic operations
~ variables (including lists and list methods like push and pop)
~ basic conditionals (if/elif/else)
~ while loops
~ loop command (infinite loop)
~ functions
Semicolons are required (they make things easier to parse).
Leave any feedback in the comments.
9
2
1
1
ip grabbersend your unique url that is auto-generated by the website to someone to grab their ip, you can clear the database of logged ips by clicking the "clear" button. Thanks and enjoy!
1
0
1
1
recursive descent calculatorvery simple language with support for variables (declared like "var_name = some number or equation"),
arithmetic operations (using +, -, *, and /),
printing ("print(1+1)"),
and basic conditionals
(syntax looks like: "if 1 == 1: print(1+1)" or "if numone != numtwo: print some value or set some variable here"),
only has an else statement as of now, and im currently interpreting the code as its parsed instead of making an AST out of the code and then interpreting that so with the current structure of the lang, its not going much further than it is currently (though i will refactor the code some other time in a different project)
0
0
1
2
conways game of lifeconways game of life with a map editor
type "preset" for preset map, type editor for a map editor. you control the editor using the arrow keys, you place a cell using "p", you delete a cell using "d", and you run the game using "f".
5
1
2
DRLC literally like how food disappears in somalia family.\
you should l klil yourlef now26 days ago
1
tic tac toe aiunbeatable tic tac toe ai made using python
2
0
1
4
unbeatable tic tac toeunbeatable tic tac toe ai, made using a minimax algorithm
unbeatable tic tac toe
unbeatable tic tac toe ai, made using a minimax algorithm29
5
4
4
unbeatable tic tac toeunbeatable tic tac toe ai, made using a minimax algorithm
29
5
4
1
path finderuses the heuristic to find the best move
ill try to improve it so it can find the best path around obstacles
0
0
1
1
invert binary treeinverts a binary tree
19
0
1
1
convert simple equation to an ASTformats a simple equation into an abstract syntax tree (this has no operator precedence so if anyone could help put me in the right direction on how to implement that it would be greatly appreciated)
0
0
1
1
quick sortrust implementation of quick sort
5
0
1
1
rough pi estimationsemi accurate estimation of pi (just started learning rust so pls forgive if code is bad)
3
0
1
22
Money collectorCollect 5 dollars to win!
your time score is placed on a global leaderboard
@ = your character
$ = money (touch to collect)
= walls (you die if you touch them)
have fun!
1.5K
51
22
1
python sortingsorts a list of numbers ig
14
0
1
how do i get the first 11 characters off a string in javascript
samfierycreeper @JacobMcPherson1, you can substring()
let myRandomVariable = "Hello World!!!"
let otherVariable = myRandomVariable.substring(0, 5)
console.log(otherVariable) <-- prints the string "Hello"
Substring is a used for exactly what you're trying to do.
substring(characteryouwanttostartwith, characteryouwanttoendwith)2 years ago
Just a little pyramid generator I made so I could practice my D skills
Blank Repl
If I generate a big pyramid this weird question mark thing replaces some of the blocks (�). Why is this happening?
Ruby
ruiwenge2 I don’t know what it is but I do know the question mark appears sometimes to me as well2 years ago
How would I access the visitor's var in my index.html file?
Ruby
CodingCactus you should use erb files, not html ones
A little example:
main.rb
get "/" do
@randnum = rand(1..10)
erb :index
end
public/index.erb
If you need some explanation, let me know!2 years ago