Artificial intelligence (AI) is the branch of computer science and technology that studies the development of machines able to simulate aspects of human intelligence.

learn more… | top users | synonyms (1)

4
votes
1answer
66 views

Bulls and Cows AI

This is a program with an 'AI' that plays Bulls and cows. Bulls and cows is a code-breaking game where you think of 4 digit number and the other layer tries to guess it: https://en.wikipedia.org/...
5
votes
1answer
68 views

Teaching an Old AI New Magic Tricks

Recently I wanted to teach the AI of my castle game how to use the spells that I have added to the game. You can try out the game here: Castleparts Initially I thought that I would have to add ...
1
vote
1answer
124 views

Tic Tac Toe game in Java vs computer

I am trying to create a Tic Tac Toe game in Java using a 2 dimensional array. The computer has to do the smartest move. ...
9
votes
2answers
898 views

AI Decision Tree

I created little decision tree, what do you think about it, what I can correct? I wanted to create a code for tree that looks in that way: My implementation: ...
9
votes
2answers
126 views

TicTacToe in Python3 w/ Simple AI

Here is my version of TicTacToe on python 3.x I'm learning python for a several weeks and I will be very appretiated if you take a look on my script and review it! P.S. I've used NumPad to input ...
5
votes
1answer
71 views

Tic Tac Toe game tree generator minimax

I have coded a working Tic Tac Toe game tree generator. It doesn't only generate the game tree, it also applies minimax values to each node. The code works fine on a board that already has 2 or more ...
10
votes
2answers
137 views

American Checkers with AI

This is the third question in the series. Number 1 had most of the official two-player rules implemented, and Number 2 was the basic UI. This one has the complete two-player rules implemented, an AI ...
4
votes
2answers
91 views

Connect Four game with minimax AI

I have created a connect four game between a bot and a player. It was quite a bit of a challenge since I wasn't too fond of the minmax algorithm until now. I know there's always room for improvement ...
0
votes
0answers
36 views

Multi-layered Perceptron

Solution: Generate Training Set ...
3
votes
0answers
41 views

Python TicTacToe AlphaBeta Program

I am looking for a review of my perfect TicTacToe algorithm. It will be split up into 3 parts: The function The GameState Class The game (NOT well designed) I am mainly looking for tips and comments ...
3
votes
1answer
506 views

Minimax Tic-Tac-Toe implementation

Notes: I know \ are against PEP8; they are for readibility I created this working through a tutorial I forgot to add blank lines, so it may be a little squished ...
3
votes
0answers
72 views

Classifying test data into several classes

The following code is to classify the test data into several classes: ...
1
vote
1answer
183 views

Naive Bayes Classifier in C#

The following is my implementation of Naive Bayes Classifier. https://github.com/edurazee/NaiveBayesClassifier I took the source code from here and tried to simplify it. How can I simplify my code ...
3
votes
1answer
88 views

Tic-Tac-Toe game with AI

I started learning Racket recently and decide to revisit the problem that introduced me to computer programming: making a Tic-Tac-Toe game with AI. Here's the code: ...
6
votes
1answer
164 views

An unbeatable TicTacToe game

I wrote an answer to another question about the same subject and a new implementation, but instead of just posting my code there I think it's a good chance to see what can be improved on my own code. ...
5
votes
1answer
122 views

Udacity AI for Robotics translating Python code to C++

I've been learning C++ for about a week now. My primary language is Python, so I thought I would find some code to translate to figure out how the pieces fit together. Please let me know any ...
7
votes
1answer
88 views

An unbeatable Tic-Tac-Toe game using exhaustive enumeration of all cases

I am a beginner programmer and I've been trying to complete an unbeatable tic-tac-toe program, my code is below. The program itself works, but it seems rather inefficient, as I literally have to type ...
3
votes
1answer
61 views

Agar.io-like game

I've created a game (basically an Agar.io clone), where a human player is placed against AI controlled bots powered by a genetic algorithm and neural networks. The problem is that I think that my ...
2
votes
0answers
88 views

Tic Tac Toe AI - library based on Minimax algorithm

I recently struggled with implementing AI in Tic Tac Toe game. For better understanding of minimax algorithm I've decided to separate AI's logic. When I finished I thought that some may find it useful,...
3
votes
1answer
73 views

A simple fully connected ANN module

I've written a simple module that creates a fully connected neural network of any size. The arguments of the train function are list of tuples with a training example array first and an array ...
2
votes
1answer
51 views

Multi or n-armed bandit reinforcement learning in R

I am learning about reinforcement learning and came across the first and simplest form of reinforcement learning system called multi-armed reinforcement learning (also called as n-armed bandit). I ...
10
votes
1answer
361 views

Yet another minimax tree for TicTacToe

I have written a working minimax tree for Tic-Tac-Toe. What I have done so far is create a tree with end node having value 10, 0 or -10 base on win, lose or draw. After I create a tree I then ...
4
votes
1answer
77 views

Tic Tac Toe algorithm using itertools

I'm looking for feedback on the readability of my code and opinions on the pick_best algorithm. I do this stuff for fun when I have time, and never get a chance to have anyone else look at it. ...
3
votes
1answer
98 views

Pong game with a random twist

I made a simple Pong game using SDL2, with a twist: You don't get to play :), only the 2 AIs get to. ;) Because Pong is a very small game, I put everything in a single file (...
17
votes
2answers
407 views

The birth of my intelligent assistant: Khronos

I've done a lot of reworking to this main file recently, in regards to using a new speech recognition engine and integrating the last reviews suggestions. My question before is going to be phrased ...
6
votes
1answer
121 views

Making a logic Prolog compiler simpler with Java

Good morning! I'm student in philosophy taking some course in programing in order to have a better understanding of artificial intelligence. I'm actually doing my own Prolog compiler just like SWISH ...
4
votes
3answers
129 views

Hungry ant AI: any food here?

I'm working on a little AI to simulate ants (very basic). The full code can be found on Github. This function (in Ants.py) takes a list of Tuples containing ...
3
votes
1answer
124 views

Tic Tac Toe game AI in C++

I wrote a Tic Tac Toe game from scratch a couple days ago. My AI doesn't always make the best moves, so I'd like some advice on how to improve it. I also hardcoded a move in a very specific ...
3
votes
1answer
364 views

Tic Tac Toe with 3 AI modes or Two-Player

This is my first stab at a game AI, and I've been working on multiple game mode difficulties, so I decided to start with a simple game. :) I'm most concerned about efficiency of the AI algorithms, and ...
7
votes
1answer
325 views

2 player chess game in C++

I have written a 2 player chess game in C++. Things I have accomplished so far: Legal moves validation Bit board generation Things I look forward to (would appreciate advice on them): Move ...
1
vote
1answer
1k views

DFS and BFS search for 8-puzzle

I implemented the DFS and BFS. Please offer improvements. ...
2
votes
1answer
461 views

Connect4 With AI

I have made a connect 4 console application in C++ and would love some feedback. In this project I have learned about inheritance and using virtual functions. Main.cpp ...
6
votes
1answer
340 views

Alpha Beta Pruning Optimization

I made a class that would do alpha beta pruning on a binary tree of 40 degree. However there is a time limit on a single move of 30 seconds. I am to play against my professor and his opponent class. I ...
3
votes
1answer
70 views

Alpha Beta Pruning with binary tree of size 40

I'm working on a program that is supposed to use alpha beta pruning to find the best move for a game. The game is basically a binary tree of degree of 40 and each node will have a different float ...
14
votes
1answer
77 views

TicTacToe with AI in ruby - follow-up overload

I already posted this program numerous times, always surprised by the amount of improvement that is possible suggested by people here. Is it possible to make it even better, without nitpicking? At ...
6
votes
0answers
92 views

Chatty AI that saves .txt files to remember

This is a basic AI that I created. It has a teach function that creates a .txt file with user inputed info for future use. If you type teachme you have the option to type in something that you have ...
19
votes
1answer
164 views

21: The number with the curse

The goal of this game is to not say the number 21. Rules: You must only say numbers consecutive to the previous said number. You may say 1, 2, or 3 numbers at a time. For example: Player 1 says 1 ...
5
votes
1answer
246 views

Tic-Tac-Toe AI Player

I made a simple tic-tac-toe AI app, where the AI, who is always O, wins or ties. I just wanted some input on it, and wanted to know if there was any ways to improve it (not the functionality of it, ...
3
votes
1answer
1k views

8-Puzzle using A* and Manhattan Distance

I have developed this 8-puzzle solver using A* with manhattan distance. Appreciate if you can help/guide me regarding: 1. Improving the readability and optimization of the code. 2. I am using sort to ...
3
votes
1answer
38 views

TicTacToe game with AI in ruby - follow-up

A week ago I posted my TicTacToe game follow-up question. The suggestions were referring mainly to the lack of polymorphism. Here's the new code, hopefully there's not a lot (or at all) to improve by ...
3
votes
0answers
2k views

Monkey-banana problem in Prolog

The monkey-banana problem: There many variations to this problem, but the basic premise is that a monkey is in a room with a banana and a chair, and the monkey cannot reach the banana until he moves ...
1
vote
1answer
157 views

Neural Net XOR Genetic Algorithms

New to Neural Networks and before I move on to gradient descent I would like to make sure I have got basic idea right. (Sorry that the class is called perceptron I know that this isnt technically ...
4
votes
3answers
334 views

TicTacToe game with functional AI in ruby - follow-up

A month ago I posted an earlier version of the game here, and got a great response, which was mainly about the structure of my code. I freed some time today and reworked the code from scratch. Things ...
1
vote
0answers
155 views

Markov chain chatbot producing poor results

In my high school AP computer science class we're making a very basic chatbot that replies with predefined answers. I decided to have a bit more fun with it My program is basically this answer on ...
4
votes
2answers
146 views

Noughts and Crosses GUI game in Java - Part 2/2: GUI

(See also Noughts and Crosses GUI game in Java - Part 1/2: AI) This part is dedicated to the View/Controller of the MVC pattern. So once again these are the building blocks of the Noughts and Crosses ...
3
votes
2answers
135 views

Noughts and Crosses GUI game in Java - Part 1/2: AI

(See also Noughts and Crosses GUI game in Java - Part 2/2: GUI) I was working on a GUI game of Noughts and Crosses, and this is what I finally got: Unfortunately, the entire source code for the ...
6
votes
2answers
545 views

Cleverbot Game in Java

This is a project I've been working on for a while. It's basically Cleverbot. What do you think? ...
5
votes
2answers
576 views

Simple TicTacToe game with AI in Ruby

What changes do you recommend from the perspective of structure, logic, etc? ...
6
votes
2answers
354 views

Ruby command line Mastermind game with AI

I've created a small command-line 'Mastermind' game using Ruby. The intent of the project (aside from having fun in the build!) was to learn and emphasize OOP concepts and principles. The game has ...
2
votes
0answers
63 views

Binary Bayes network classifier in Java - Part II/II

This is the continuation of Binary Bayes network classifier in Java - Part I/II TERMINOLOGY We are given a directed acyclic graph (dag) \$G = (V, A)\$, where \$V\$ is the set of nodes and \$A \...