Draft

--> XO

Description:

Imagine XO game like this :

   1 | 2 | 3
   4 | 5 | 6
   7 | 8 | 9
   
XO_Map = "123456789"

Write a function that receives XO_Map returns the winner.


Example #1:

XO_Winner("OXX4O6X8O")

This should return "O"

The map :

   O | X | X
   4 | O | 6
   X | 8 | O

Example #2:

XO_Winner("OXXXXOOOX")

If there's no winner return ""

The map :

   O | X | X
   X | X | O
   O | O | X

Enjoy !!!!!!!!!!!!!!

More By Author:

Check out these other kata created by Stuff!!

Stats:

CreatedJan 23, 2025
Warriors Trained13
Total Skips0
Total Code Submissions28
Total Times Completed11
C++ Completions11
Total Stars0
% of votes with a positive feedback rating25% of 4
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes2
Total "Not Satisfied" Votes2
Total Rank Assessments5
Average Assessed Rank
7 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • Stuff!! Avatar
Ad