Better HN
topnewbestaskshowjobs
Log inSign up

myd

3 karma · joined Mar 20, 2014 (12y ago) · 2 submissions

Submissions

comment 12y ago · link · parent

Strange, now I tried with following versions of bash and it seems to work fine for me with all of them - no errors and no disappearing numbers:

4.3.0 3.2.25 3.00.15

comment 12y ago · link · parent

Author here, I did not notice any numbers disappearing on several games, maybe it is because of different versions of bash, you can try running it as:

./bash2048.sh | tee qqq.log

then remove color codes from log by running:

sed -r -i "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" qqq.log

you can then see each round in the log and it should be easy to find the spot where numbers disappeared, if you could post that log somewhere it may help me find the problem.