Posts

Showing posts from March, 2020

ARTIFICIAL INTELLIGENCE

Image
INTRODUCTION TO AI: In computer science, artificial intelligence, sometimes called machine intelligence, is intelligence demonstrated by machines, in contrast to the natural intelligence displayed by humans and animals. In computer science  artificial intelligence  ( AI ), sometimes called  machine intelligence , is intelligence demonstrated by machines, in contrast to the  natural intelligence  displayed by humans and animals. Leading AI textbooks define the field as the study of "intelligent agents": any device that perceives its environment and takes actions that maximize its chance of successfully achieving its goals.Colloquially, the term "artificial intelligence" is often used to describe machines (or computers) that mimic "cognitive" functions that humans associate with the human mind, such as "learning" and "problem solving".  As machines become increasingly capable, tasks considered to require "intel...

Web design in HTML

<!doctype html> <html> <head> </head> <body>   <meta name= "viewport" content= "width=device-width, initial-scale= 1.0 " >   <title>    Page Title    </title>   <link href= "https://fonts.googleapis.com/css?family=Material+Icons|Ubuntu|Montserrat|Noto+Sans&amp; display=swap" rel= "stylesheet" >   <header>    <p class= "material-icons left" onclick= "nav()" > menu </p>    <p class= "material-icons left" onclick= "search()" > search </p>    <input type= "text" id= "search" >    <p class= "material-icons" id= "right" onclick= "more()" > more_vert </p>   </header>   <h1> Hello, World! </h1>   <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin ornare mauris ac eros ultricies convallis. Donec eu ante et velit ...

Tic tac toe in Python

Tic tac toe in Python: Let's start: board = [ "-" , "-" , "-" ,          "-" , "-" , "-" ,          "-" , "-" , "-" ] game_still_going = True winner = None current_player = "X" def play_game():   print ( "\n            TIC TAC TOE GAME \n" )   print ( "Note : Use the numpad to enter X or O in \n respective fields.\n" )   display_board()   while game_still_going:     handle_turn(current_player)     check_if_game_over()     flip_player()   if winner == "X" or winner == "O" :     print ( "PLAYER" ,winner, "IS THE WINNER !!." )   elif winner == None :     print ( "Tie." )   print ( "\nT H A N K S   F O R   P L A Y I N G !!!" ) def display_board():   print (board[ 0 ] + " | " + board[ 1 ] + " | " + board[ 2 ]...