Problem scenario
You want to play TicTacToe. You have a Golang compiler installed. What should you do?
Solution
Prerequisites
This assumes that you have installed Go. If you need assistance, see this posting.
Procedures
1. Name this program tictactoe.go.
package main
import (
“strings”
“bufio”
“fmt”
“os”
)
func mapper(letter string) int{
if strings.TrimRight(letter, …
Continue reading “How Do You Write a Tic-Tac-Toe Program in Golang?”