Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C to solve this question Description Gomoku, also called Five in a Row, is an abstract strategy board game. It is traditionally played with

Using C to solve this question

Description

Gomoku, also called Five in a Row, is an abstract strategy board game. It is traditionally played with black and white stones on a 1919 board.The winner is the first player to form an unbroken chain of five stones horizontally, vertically, or diagonally. Please write a program to determine if there is a winner or not.

Input

Input content 19 line, each line content 19 character and a new line

O represent white stone, X represent black stone and _ means there is no stone on that spot.

Output

Output "White" if white win, "Black" if black win, "No winner" if no one win.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions