Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
div {
display: block;
}
#wrapper {
import java.util.ArrayList;
import java.util.List;
public class Computer {
/**
* Computer finds out if the player can win in next turn and prevents player from winning
* If player cannot win in next turn, computer finds the best possible option and plays it
* @param outcomes