add decimal output to brainfuck programs
This commit is contained in:
parent
f987c01b73
commit
92a75560fb
3 changed files with 220 additions and 8 deletions
|
@ -1,9 +1,10 @@
|
|||
use std::fs;
|
||||
|
||||
fn main () {
|
||||
for _ in 0..1000{
|
||||
a();
|
||||
b();}
|
||||
fn main() {
|
||||
for _ in 0..1000 {
|
||||
a();
|
||||
b();
|
||||
}
|
||||
}
|
||||
|
||||
fn a() {
|
||||
|
@ -72,7 +73,7 @@ fn b() {
|
|||
cards.push(1);
|
||||
}
|
||||
let this_card = cards[card_id];
|
||||
for i in 1..(score+1) {
|
||||
for i in 1..(score + 1) {
|
||||
if card_id + i >= cards.len() {
|
||||
cards.push(1 + this_card);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue