Guest User

Untitled

a guest
Feb 18th, 2018
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. func parseInput(input string) [9][9]int {
  2. board := [9][9]int{}
  3. scanner := bufio.NewScanner(strings.NewReader(input))
  4.  
  5. scanner.Split(bufio.ScanRunes)
  6.  
  7. for row := 0; row < 9; row++ {
  8. for col := 0; col < 9; col++ {
  9. scanner.Scan()
  10. i1, _ := strconv.Atoi(scanner.Text())
  11. board[row][col] = i1
  12. }
  13. }
  14. return board
  15. }
Add Comment
Please, Sign In to add comment