Тёмный
Code Steve
Code Steve
Code Steve
Подписаться
USACO - Sets (C++, Python, and Java)
32:59
2 года назад
USACO Bronze 2020 Feb #3 - Swapity Swap
27:28
2 года назад
USACO Bronze 2022 Open #3 - Alchemy
19:35
2 года назад
USACO Silver 2019 Dec #1 - MooBuzz
14:02
2 года назад
USACO Silver 2021 Jan #1 - Dance Mooves
16:09
2 года назад
USACO Bronze 2022 Open #1 - Photoshoot
19:03
2 года назад
USACO Silver 2019 Open #1 - Left Out
19:47
2 года назад
USACO Silver 2018 Jan #1 - Lifeguards
16:39
2 года назад
USACO Silver 2018 Feb #1 - Rest Stops
27:37
2 года назад
Led 64 Game for Arduino
0:43
9 лет назад
Комментарии
@harisumanth
@harisumanth 2 месяца назад
This explanation is soo good, thanks!
@systempesystm
@systempesystm 5 месяцев назад
Nice explaination
@singleslit2024ICPCgrind
@singleslit2024ICPCgrind 7 месяцев назад
Great explanation!
@MinabenPatel-u7v
@MinabenPatel-u7v 9 месяцев назад
Rrally good explanation ❤
@rohakdebnath8985
@rohakdebnath8985 Год назад
Your explanation is so good. It's so pleasant and easy to follow. Thanks Steven.
@knedl1k_
@knedl1k_ Год назад
awesome vid, really helped!
@martinklementis6211
@martinklementis6211 Год назад
thanks man! i needed help with finding sub-matrix sum
@amansingh.h716
@amansingh.h716 Год назад
IT HELPED
@nabiltaylor9598
@nabiltaylor9598 Год назад
Great explanation
@nopecharon
@nopecharon Год назад
Great explanation
@zappist751
@zappist751 Год назад
i love it
@fustigate8933
@fustigate8933 2 года назад
Hi, I really like your explanations, I would like to have lessons, but they are too expensive for my parents to handle... Do you have any suggestions?
@TarasMoskalenko
@TarasMoskalenko 3 года назад
Plz show code.
@michaelnguyen1179
@michaelnguyen1179 6 лет назад
hey there i was just wondering if i could get the code for this
@reduxde
@reduxde 6 лет назад
//hook up the 64 LED as typical, and the analogue joystick Y->A1, X->A0 //LED PINS const int row[8] = {2,7,19,5,13,18,12,16 }; const int col[8] = {6,11,10,3,17,4,8,9 }; // PLAYER int x = 7; int y = 7; // JOYSTICK PINS int joyPin1 = 0; // slider variable connecetd to analog pin 0 int joyPin2 = 1; // slider variable connecetd to analog pin 1 int centerx = 512; int xvar = 48; int centery = 512; int yvar = 48; int monster1x = 0; int monster1y = 0; int monster1RefreshCount = -1; int monster1RefreshEvery = 200; int monster2x = 0; int monster2y = 0; int monster2RefreshCount = -1; int monster2RefreshEvery = 2000; int joystickRefreshCount = -1; int joystickRefreshEvery = 400; int gameOver = false; void setup() { for (int thisPin = 0; thisPin < 8; thisPin++) { pinMode(col[thisPin], OUTPUT); pinMode(row[thisPin], OUTPUT); digitalWrite(col[thisPin], HIGH); digitalWrite(row[thisPin], LOW); } pinMode(col[x], OUTPUT); pinMode(row[y], OUTPUT); digitalWrite(col[x], LOW); digitalWrite(row[y], HIGH); Serial.begin(9600); } void loop() { refreshScreen(); if(gameOver) { return; } joystickRefreshCount--; monster1RefreshCount--; monster2RefreshCount--; readJoystick(); //aborts if refresh > 0 moveMonster(); if((monster1x == x) && (monster1y == y)) gameOver = true; if((monster2x == x) && (monster2y == y)) gameOver = true; if(joystickRefreshCount < 0) joystickRefreshCount = joystickRefreshEvery; if(monster1RefreshCount < 0) monster1RefreshCount = monster1RefreshEvery; if(monster2RefreshCount < 0) monster2RefreshCount = monster2RefreshEvery; } void moveMonster() { if(monster1RefreshCount < 0) { //move monster 1; if(random()%3 == 0) //don't always move { //x movement monster1x += random()%3 - 1; monster1x = constrainTo(monster1x, 0, 7); monster1y += random()%3 - 1; monster1y = constrainTo(monster1y, 0, 7); } } if(monster2RefreshCount < 0) { //move monster 2; if(x < monster2x) monster2x--; else if(x > monster2x) monster2x++; if(y < monster2y) monster2y--; else if(y > monster2y) monster2y++; } }
@dushyanthkandiah3718
@dushyanthkandiah3718 8 лет назад
please tell me how to make that android app
@จัสตินไบเบิก
i want to code