Artificial Intelligence in JavaScript Tutorial 2 | JavaScript

preview_player
Показать описание
In this video, we are going to work with the JavaScript file.
Рекомендации по теме
Комментарии
Автор

I am glad to know about this channel.. It's seriously underrated. Your deserve more subscribers.

НиколетаГенова-ыо
Автор

This is really interesting.. can't wait for the next video

nikolascaletta
Автор

when I did the capitalization thing it broke the HTML

tjo
Автор

Can someone help me with this loop it doesnt work and i dont know why .im trying to fix it sience 4 hours.


#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
#include <conio.h>
#include <graphics.h>





int main()
{
int taste, y_pos, y_pos2, auswahl;
DWORD screenWidth =
DWORD screenHeight =
initwindow(screenWidth, screenHeight, "", -3, -3);
y_pos=420;
auswahl=0;



do
{
setcolor(WHITE);
setfillstyle(SOLID_FILL, WHITE);
fillellipse(650, y_pos, 10, 10);


if(taste=='w' && y_pos<400 )
{
setfillstyle(SOLID_FILL, BLACK);
fillellipse(650, y_pos, 10, 10);
y_pos=y_pos-50;
delay(100);
}
if(taste=='s' && y_pos <550)
{
setfillstyle(SOLID_FILL, BLACK);
fillellipse(650, y_pos, 10, 10);
y_pos=y_pos+50;
}

}
while(auswahl <27);









closegraph();
return( 0 );
}

robertcoman