Escaping the state of nature and going through a state where all civilians are equal, where justice is made, where the minority as well as the majority has the power and the authority to rule the country by choosing their governing legislation as known as the people representatives. That was the exact meaning of democracy.
However, to better understand it and to effectively achieve it, we ought to dig deeper into the concepts that are supporting it, such as; globalization .And …
In this tutorial, we’re going to dig deeper into the deployment of a highly available and scalable RoR application. But first, let’s make a quick overview about the RESTful architecture with whom we’re gonna implement our app.
RESTful architectures carry some architectural constraints that were inherited from various networked distributed architectural styles. Client and server in RESTful architectures are orthogonal, meaning there is a clear separation of concerns and functions between them. User logic is moved completely to the client side and server components are kept simple to improve scalability. This separation also allows the two components to be developed…
In this tutorial I’m going to explain how to implement a tic-tac-toe game from scratch using one of the famous artificial intelligence algorithms: the minimax.
If you have been wondering and asking yourself how actually a computer could beat a human in a game then you should deeply understand how it works and what makes it take the right decision each time.
The first part will be to define a function that returns the initial state of the board.
import copyX = "X"
O = "O"
EMPTY = Nonedef initial_state():
return [[EMPTY, EMPTY, EMPTY]…
I’m a writer, a developer and an open source contributor