Skip to content

Commit

Permalink
fix pain.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rask24 committed Feb 14, 2024
1 parent 1b3bd3e commit 4585c05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/pain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ NBR_LINK=$( echo "$NBR" | tr ' ' ',' )
CMD_LINK=$( echo "$CMD" | sed -e"s/rra/g/g" -e"s/rrb/h/g" \
-e"s/rrr/i/g" -e"s/sa/a/g" -e"s/sb/b/g" -e"s/ss/c/g" \
-e"s/ra/d/g" -e"s/rb/e/g" -e"s/rr/f/g" -e"s/pa/j/g" -e"s/pb/k/g" | tr -d '\n')
# CMD_COUNT=${#CMD_LINK}
RESULT=$( echo $CMD | ./checker $NBR )
CMD_COUNT=${#CMD_LINK}
# RESULT=$( echo $CMD | ./checker $NBR )
echo "Operations: $CMD_COUNT"
echo "Result $RESULT"
open "https://kaaaaakun.github.io/push-swap-pain/?&nbr=$NBR_LINK&cmd=$CMD_LINK"

0 comments on commit 4585c05

Please sign in to comment.