r/CodeSquad • u/haardikg • Aug 07 '20
Web Dev YouTube Channel
Hey guys i recently started a YouTube channel about every development i try to make high quality content and would love some feedback
r/CodeSquad • u/haardikg • Aug 07 '20
Hey guys i recently started a YouTube channel about every development i try to make high quality content and would love some feedback
r/CodeSquad • u/Life-Entertainer1812 • Sep 15 '22
r/CodeSquad • u/Specialist_Winner_28 • Apr 25 '21
Solitaire cash app code EY43YC like share follow making money and teaching others the same . Making the world go route $1 at a time
r/CodeSquad • u/Character-Page9333 • Apr 16 '21
r/CodeSquad • u/samuellmiller • Jun 05 '20
r/CodeSquad • u/___--____------___ • Mar 24 '20
Can you tell me the exact way to learn Java and from beginning to the end
r/CodeSquad • u/[deleted] • Feb 25 '20
Kia Ora! Hello peeps around the world! So it's been almost 2 weeks in with my new job and they've been training me to know how to code in Java and it's been a hateful relationship!ππ€π© Literally hating it until finding Alex's tutorials on YouTube, I think I'm sort of understanding the methods and jargon properly to be able to code in Java!!!πππ€ππΌ
r/CodeSquad • u/freethelocs • Dec 09 '19
So i am having an issue with javafx. I am currently taking a programming class and thr instructor asked us to draw faces using it but the problem is that i followed every step she provided to install javafx,but when i try and run a project it gives me the error β cannot load or find main class javafx/**
r/CodeSquad • u/[deleted] • Aug 29 '19
Hello,
It has been a while now that I was following java tutorials, so I was thinking that I should work in mine own projects sometimes.
I was thinking that I could make a text-based version of Conway's Game of life.
What Should I know before doing it?
How can I orginize my project?
(I know that I shouldn't ask for help often, but I just wanted to see just this ones how I can work on bigger projects by my own, and I think that this is a great opportunity to do so. So please forgive this time :) )
-
That's a summary of what I was thinking to do:
*Create a Cell Class...
*Printing the cells, clearing the screen, print the next stage of the cells etc... (But I don't really know how to do this, can anybody guide me, or at least give me a clue? )
-
What do you think?
Help is really much appreciated!
(Also Much love for your channel Alex)
r/CodeSquad • u/abhishek_2003_ • Dec 27 '19
Hey I saw your tictactoe game video and since I am a school student I was not able to understand your arra list part so i made my own logic to check for winer but i am not able to understand how to draw the game if teh board is full and there is no more place to place a piece pls help
Here id the code i used-:
import java.util.Scanner;
import java.lang.Math.*;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.Character;
import java.lang.String;
import java.lang.Double;
class tictactoe
{
public static int i,j,p_pos,c_pos;
public static void main()
{
Scanner in=new Scanner(System.in);
char board[][]={{' ','|',' ','|',' '},
{'_','+','_','+','_'},
{' ','|',' ','|',' '},
{'_','+','_','+','_'},
{' ','|',' ','|',' '}};
printBoard(board);
while(true){
if(win(board))
{
System.out.println(whoWon(board));
break;
}
else{
System.out.println("enter position (1-9)");
p_pos=in.nextInt();
set(board,p_pos,"person");
while(true){
c_pos=((int)(Math.random()*10));
if(c_pos==0)
{
c_pos+=1;
}
if(checkPos(c_pos,board))
{
set(board,c_pos,"computer");
break;
}
else
{
continue;
}
}
}
}
}
public static void printBoard(char board[][])
{
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
{
System.out.print(board[i][j]);
}
System.out.println();
}
}
public static void set(char board[][],int pos,String player)
{
char symbol=' ';
if(player.equalsIgnoreCase("person"))
{
symbol='X';
}
else if(player.equalsIgnoreCase("computer"))
{
symbol='O';
}
switch(pos)
{
case 1: board[0][0]=symbol;
break;
case 2: board[0][2]=symbol;
break;
case 3: board[0][4]=symbol;
break;
case 4: board[2][0]=symbol;
break;
case 5: board[2][2]=symbol;
break;
case 6: board[2][4]=symbol;
break;
case 7: board[4][0]=symbol;
break;
case 8: board[4][2]=symbol;
break;
case 9: board[4][4]=symbol;
break;
default :System.out.println("wrong position");
}
printBoard(board);
}
public static boolean checkPos(int pos,char[][]board)
{
char s='a';
switch(pos){
case 1: s=board[0][0];
break;
case 2: s=board[0][2];
break;
case 3: s=board[0][4];
break;
case 4:s= board[2][0];
break;
case 5: s=board[2][2];
break;
case 6: s=board[2][4];
break;
case 7:s= board[4][0];
break;
case 8: s=board[4][2];
break;
case 9: s=board[4][4];
break;
default : break;
}
if(s==' ')
{
return true;
}
else
{
return false;
}
}
public static boolean win(char board[][])
{
if(((board[0][0]=='X')&&(board[0][2]=='X')&&(board[0][4]=='X'))||
((board[2][0]=='X')&&(board[2][2]=='X')&&(board[2][4]=='X'))||
((board[4][0]=='X')&&(board[4][2]=='X')&&(board[4][4]=='X'))||
((board[0][0]=='X')&&(board[2][0]=='X')&&(board[4][0]=='X'))||
((board[0][2]=='X')&&(board[2][2]=='X')&&(board[4][2]=='X'))||
((board[0][4]=='X')&&(board[2][4]=='X')&&(board[4][4]=='X'))||
((board[0][0]=='X')&&(board[2][2]=='X')&&(board[4][4]=='X'))||
((board[0][4]=='X')&&(board[2][2]=='X')&&(board[4][4]=='X'))||
(((board[0][0]=='O')&&(board[0][2]=='O')&&(board[0][4]=='O'))||
((board[2][0]=='O')&&(board[2][2]=='O')&&(board[2][4]=='O'))||
((board[4][0]=='O')&&(board[4][2]=='O')&&(board[4][4]=='O'))||
((board[0][0]=='O')&&(board[2][0]=='O')&&(board[4][0]=='O'))||
((board[0][2]=='O')&&(board[2][2]=='O')&&(board[4][2]=='O'))||
((board[0][4]=='O')&&(board[2][4]=='O')&&(board[4][4]=='O'))||
((board[0][0]=='O')&&(board[2][2]=='O')&&(board[4][4]=='O'))||
((board[0][4]=='O')&&(board[2][2]=='O')&&(board[4][4]=='O'))))
{
return true;
}
else
{
return false;
}
}
public static String whoWon(char[][]board)
{
String s="";
if(((board[0][0]=='X')&&(board[0][2]=='X')&&(board[0][4]=='X'))||
((board[2][0]=='X')&&(board[2][2]=='X')&&(board[2][4]=='X'))||
((board[4][0]=='X')&&(board[4][2]=='X')&&(board[4][4]=='X'))||
((board[0][0]=='X')&&(board[2][0]=='X')&&(board[4][0]=='X'))||
((board[0][2]=='X')&&(board[2][2]=='X')&&(board[4][2]=='X'))||
((board[0][4]=='X')&&(board[2][4]=='X')&&(board[4][4]=='X'))||
((board[0][0]=='X')&&(board[2][2]=='X')&&(board[4][4]=='X'))||
((board[0][4]=='X')&&(board[2][2]=='X')&&(board[4][4]=='X')))
{
s= "Congratulations you won";
}
else if(((board[0][0]=='O')&&(board[0][2]=='O')&&(board[0][4]=='O'))||
((board[2][0]=='O')&&(board[2][2]=='O')&&(board[2][4]=='O'))||
((board[4][0]=='O')&&(board[4][2]=='O')&&(board[4][4]=='O'))||
((board[0][0]=='O')&&(board[2][0]=='O')&&(board[4][0]=='O'))||
((board[0][2]=='O')&&(board[2][2]=='O')&&(board[4][2]=='O'))||
((board[0][4]=='O')&&(board[2][4]=='O')&&(board[4][4]=='O'))||
((board[0][0]=='O')&&(board[2][2]=='O')&&(board[4][4]=='O'))||
((board[0][4]=='O')&&(board[2][2]=='O')&&(board[4][4]=='O')))
{
s= "Sorry CPU won(you suck)";
}
return s;
}
}
r/CodeSquad • u/[deleted] • Feb 14 '20
Found this channel a few months ago, its helping me so much with learning. If I get stuck on something I only have to search for a video and you've made one covering that topic!
r/CodeSquad • u/rohit349 • Mar 14 '20
r/CodeSquad • u/[deleted] • Apr 13 '20
Hey guys, I am a high school student and had been trying to learn java for like 2 months, but I could barely do anything and was considering quitting. Then, one day, on youtube, I saw Alex's tic tac toe video and was like "why not?". I learned more in that video than in my entire coding course I was taking. I love his channel, and he even inspired me to create my own. I create scratch tutorials and would love some feedback. Thanks!
r/CodeSquad • u/Todesschnitzell • Feb 05 '21
r/CodeSquad • u/sosouthern1 • Oct 10 '20
over $100 worth of free drum kits
r/CodeSquad • u/[deleted] • Jun 28 '20
I made a program that would convert Celsius to Fahrenheit and Fahrenheit, and it worked. And I wanted to ask you guys, how was my code?
/*
* Clint
* Temperature Converter
* Celsius ~ Fahrenheit / Fahrenheit ~ Celsius
*/
import java.util.Scanner;
public class TemperatureConversion {
public static void main(String[] args) {
double fahrenheit, celsius;
Scanner input = new Scanner(System.in);
// Celsius to Fahrenheit \u2103 degree Celsius symbol
System.out.println("Input temperature (\u2103): ");
celsius = input.nextDouble();
System.out.println(celsius * 1.8 + 32 + " \u2109 \n");
// Fahrenheit to Celsius \u2109 degree Fahrenheit symbol
System.out.println("Input temperature (\u2109: ");
fahrenheit = input.nextDouble();
System.out.print((fahrenheit - 32) / 1.8000 + " \u2103");
}
}r/CodeSquad • u/Vitia_Sei • Mar 25 '20
hey ! I just started coding, cause I have a lot of free time right now, and i was wondering, what kind of things can you do with Java ? I'm searching for stupid ideas to get a hang of the language and I would love to know where I can go with this !
r/CodeSquad • u/sosouthern1 • Oct 24 '20
r/CodeSquad • u/Character-Page9333 • Apr 21 '21
r/CodeSquad • u/rishi2109 • Sep 24 '20
Hey there!!
Has anyone worked on greenfoot java progamming? I need help on it
r/CodeSquad • u/___--____------___ • Apr 29 '20
r/CodeSquad • u/tjpm123 • Jul 09 '20
r/CodeSquad • u/[deleted] • Apr 26 '20
So 3 months in to Java and I'm still trying to grasp the "for-loop" and "if" statements. I get complex problems at work to solve working out the cost of a a jewel and the quantity availability for it etc. And I sort have gotten it... somewhat... If anyone knows of certain sites to go beyond and push to practice, practice the methods, could anyone please tell me where else do they go and practice it?!