Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetWorkingDir %A_ScriptDir%
- FileRead, slopeStr, % A_ScriptDir "\d3.txt"
- slopeLines := StrSplit(slopeStr, "`r`n")
- count := 0
- xPos := 0
- for yPos, Line in slopeLines {
- if SubStr(Line, xPos + 1, 1) = "#"
- count += 1
- xPos := Mod(xPos + 3, StrLen(Line))
- }
- Clipboard := count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement