Original was January 22. On Fri, Feb 1, 2019 at 3:56 PM Michael Jones <michael.jo...@gmail.com> wrote:
> This looks like the question asked a week ago. Look at the first post for > answers. > > On Fri, Feb 1, 2019 at 3:44 PM John <markfe...@gmail.com> wrote: > >> Dear Gophers, >> I have made a connect five game, and am planning to make it a website. >> But first, there is a diagnostic problem. My win function depends on if a >> points neighbouring 4 dots ..x.. are all the same type. But if its on the >> edge it will not run, as it only has 2 neighbours X .. I made this >> function, but it still wont work, also if there is a way to shorten it I >> will be glad to use it..: >> func simple() { >> if x == "1"|| x == "2"|| x == "3"|| x == "4"|| x == "5"|| x == "6"|| x == >> "7"|| x == "8"|| x == "9"|| x == "10"|| x == "11"|| x == "12"|| x == "13"|| >> x == "14"|| x == "15" { >> if y == "1"|| y == "2"|| y == "3"|| y == "4"|| y == "5"|| y == "6"|| y == >> "7"|| y == "8"|| y == "9"|| y == "10"|| y == "11"|| y == "12"|| y == "13"|| >> y == "14"|| y == "15" { >> wiwi() >> } else { >> showBoard() >> fmt.Println("Sorry you had entered wrong please enter again") >> fmt.Scanln(&x,&y) >> simple() >> } >> } >> } >> Ps it is before the win function in the game function. >> >> >> >> >> >> John >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to golang-nuts+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- > > *Michael T. jonesmichael.jo...@gmail.com <michael.jo...@gmail.com>* > -- *Michael T. jonesmichael.jo...@gmail.com <michael.jo...@gmail.com>* -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.