4 kyu
Connect Four
769 of 5,860aryan-firouzian
Description:
Connect Four
Take a look at wiki description of Connect Four game:
The grid is 6 row by 7 columns, those being named from A to G.
You will receive a list of strings showing the order of the pieces which dropped in columns:
List<string> myList = new List<string>()
{
"A_Red",
"B_Yellow",
"A_Red",
"B_Yellow",
"A_Red",
"B_Yellow",
"G_Red",
"B_Yellow"
};
The list may contain up to 42 moves and shows the order the players are playing.
The first player who connects four items of the same color is the winner.
You should return "Yellow", "Red" or "Draw" accordingly.
Fundamentals
Similar Kata:
Stats:
Created | Jan 2, 2016 |
Published | Jan 2, 2016 |
Warriors Trained | 29796 |
Total Skips | 10682 |
Total Code Submissions | 88622 |
Total Times Completed | 5860 |
C# Completions | 769 |
JavaScript Completions | 1224 |
Ruby Completions | 134 |
C++ Completions | 674 |
Python Completions | 2231 |
Java Completions | 718 |
PHP Completions | 184 |
Total Stars | 1102 |
% of votes with a positive feedback rating | 93% of 916 |
Total "Very Satisfied" Votes | 799 |
Total "Somewhat Satisfied" Votes | 99 |
Total "Not Satisfied" Votes | 18 |
Total Rank Assessments | 8 |
Average Assessed Rank | 4 kyu |
Highest Assessed Rank | 3 kyu |
Lowest Assessed Rank | 6 kyu |