John,

Here is a simple proof-of-concept implementation.

Playground: https://play.golang.org/p/Hd0dmazXI5v

Output:

11 12 13 14 
21 22 23 24 
31 32 33 34 

XX 12 13 14 
21 XX 23 24 
31 32 XX 34 


Peter

On Monday, January 14, 2019 at 12:47:50 AM UTC-5, John wrote:
>
> Dear Gophers,
>     
>       I am a beginner gopher has created a project of Connect Five. The 
> game's board is shown in a dot array like this
>
> ...............
> ...............
> ...............
>      And to input, you have to put in the exact coordinates of the place 
> you want to place, like this 1 3. You would have to carefully count the 
> dots and then input, which is a pain for the eyes. So I wonder if it is 
> possible to make a array like this and how:
>  
>
> 11 12 13 14
> 21 22 23 24
> 31 32 33 34
>
>                                                                           
>                                                                             
>                                    Thank you,
>
>                                                                           
>                                                                             
>                                              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.

Reply via email to