This hole is experimental, passing requirements may change. Solutions won't contribute to scoring until the hole goes live.

Please leave feedback on the GitHub issue.

Details

Connect Four is a solved strategy game in which two players take turns dropping a red or yellow checker into a column with at least one unoccupied space, traditionally played on a six-by-seven playing rack. The player who drops the red checkers is always the first to take action, and in theory they are always favored to win by endangering their opponent, as the red checkers are dropped in strategic locations. The first player to complete a horizontal, vertical, or diagonal line of four connected checkers wins the game.

Each argument is a space-separated series of digits of different lengths and represents the columns into which players drop checkers, with 0 and 6 being the leftmost and rightmost columns, respectively. Note that a sequence can also represent a game in progress. For each argument, decide which color wins and print Red or Yellow. Additionally, print Draw if no row of four connected checkers is complete when both players have used all their checkers; or - when games are still in progress.

External links: Wikipedia

0 bytes, 0 chars
Restore solution
All
Compiled from AT&T syntax to x86-64 Linux. Use syscalls to write output.
05AB1E is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
ALGOL 68 is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
APL is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Arturo is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Befunge is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
BQN is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
CJam is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
CoffeeScript is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Egel is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Erlang is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Fennel is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Groovy is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Harbour is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Hare is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Haxe is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Hush is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Hy is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
iogii is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Odin is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Picat is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Racket is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Rebol is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Rexx is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Scala is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Squirrel is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Stax is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Uiua is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
Vyxal is an experimental language, solutions won't contribute to scoring until the language goes live. Please leave feedback on the GitHub issue.
ctrl + enter or

Delete Solution

Are you sure you want to delete your solution(s) for Connect Four?

If you have separate bytes and chars solutions then both will be deleted.

This is irreversible, please backup any code you care about.

Type I understand and press confirm to continue.