Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions modulo1/funcoes/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="index.js"></script>
</head>
<body>

</body>
</html>
Empty file added modulo1/funcoes/index.js
Empty file.
67 changes: 67 additions & 0 deletions modulo1/projeto-blackjack/nossoJogo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/**
* EXEMPLO DE UTILIZAÇÃO DA 'comprarCarta'
*
*
const carta = comprarCarta(); // Sorteia uma carta. Por exemplo, o rei de ouros

console.log(carta.texto) // imprime o texto da carta. Exemplo: "K♦️" (indica "K" de ouros)
console.log(carta.valor) // imprime o valor da carta (um número). Exemplo: 10 (dado que "K" vale 10)
*
*
*
*/
/* As regras do jogo são as seguintes:

- Existem 2 jogadores: o usuário e o computador.
- Os jogadores usam um baralho com muitas cartas. As cartas têm um número (A, 2, 3, 4, 5, 6, 7, 8, 9, 10, J , Q, K) e um naipe (Copas (♥️), Paus (♣️), Ouros(♦️) e Espadas(♠️)). Por exemplo, uma carta do baralho é o dois de Paus (2♣️). Existem 52 possibilidades de cartas diferentes (13 números e 4 naipes).
- Os jogadores compram cartas do baralho. Ao comprar uma carta do baralho, ela pode ser de qualquer uma das 52 cartas, com probabilidade igual.
- As cartas tem um valor de acordo com seu número (a carta 4♣️ tem valor 4, e a carta 9♦️ tem valor 9). As cartas J, Q e K tem valor 10, e a carta A tem valor 11.
- O jogo inicia com cada jogador (usuário e computador) recebendo 2 cartas. A pontuação de cada jogador é a soma do valor das suas cartas.
- O jogador com a maior pontuação ganha a rodada.*/

///*- **🎰** Montando o jogo
//Essa etapa do projeto consiste em criar um programa que:
// 1 - Imprime uma mensagem no console "Boas vindas ao jogo de Blackjack!".
console.log("Boas vindas ao jogo de Blackjack!")

const usuario = confirm("Quer iniciar uma nova rodada?")

if(usuario === true){
console.log("Iniciaremos uma nova rodada")
}else{
console.log("O jogo acabou")
}


//- **🃏** Começando uma rodada
// A rodada consiste em sortear 2 cartas para cada jogador, definir a pontuação de cada jogador e
//informar o vencedor (usuário ou computador), ou empate, caso as pontuações sejam iguais.

/*5 - Nós preparamos um método que permite sortear uma carta. **Ele já está pronto e você só
precisa invocá-lo**. Cada carta sorteada é um objeto com duas propriedades: um **texto** que
representa o que é escrito na carta; e um **valor** que mostra a pontuação da carta. */


const cartaUsuario = comprarCarta()
const cartaComputador = comprarCarta()
const cartaUsuario1 = comprarCarta()
const cartaComputador1 = comprarCarta()

// Sorteia uma carta. Por exemplo, o rei de ouros
console.log(carta.texto)// imprime o texto da carta. Nesse caso: "K♦️"
console.log(carta.valor)// imprime o valor da carta (um número). Nesse caso: 10)


/*6 - O programa deve mostrar, no console, as cartas e pontuação de cada jogador no formato
mostrado abaixo:
"Usuário - cartas: Q♣️ 10♣️ - pontuação 20"
"Computador - cartas: Q♣️ 10♣️ - pontuação 20" */
console.log()

/*7 - Além disso, deve indicar o vencedor ou um empate:
"Empate!"
"O usuário ganhou!"
"O computador ganhou!" */



Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
// EXEMPLOS DE IMPLEMENTAÇÃO ---------------------------------------------------------------

// EXERCÍCIO 0A
function soma(num1, num2) {
// implemente sua lógica aqui
return num1 + num2
}

// EXERCÍCIO 0B
function imprimeMensagem() {
// implemente sua lógica aqui
const mensagem = prompt('Digite uma mensagem!')

console.log(mensagem)
}

// EXERCÍCIOS PARA FAZER ------------------------------------------------------------------

// EXERCÍCIO 01
function calculaAreaRetangulo() {
// implemente sua lógica aqui

}

// EXERCÍCIO 02
function imprimeIdade() {
// implemente sua lógica aqui

}

// EXERCÍCIO 03
function calculaIMC(peso, altura) {
// implemente sua lógica aqui

}

// EXERCÍCIO 04
function imprimeInformacoesUsuario() {
// implemente sua lógica aqui
// "Meu nome é NOME, tenho IDADE anos, e o meu email é EMAIL."

}

// EXERCÍCIO 05
function imprimeTresCoresFavoritas() {
// implemente sua lógica aqui

}

// EXERCÍCIO 06
function retornaStringEmMaiuscula(string) {
// implemente sua lógica aqui

}

// EXERCÍCIO 07
function calculaIngressosEspetaculo(custo, valorIngresso) {
// implemente sua lógica aqui

}

// EXERCÍCIO 08
function checaStringsMesmoTamanho(string1, string2) {
// implemente sua lógica aqui

}

// EXERCÍCIO 09
function retornaPrimeiroElemento(array) {
// implemente sua lógica aqui

}

// EXERCÍCIO 10
function retornaUltimoElemento(array) {
// implemente sua lógica aqui

}

// EXERCÍCIO 11
function trocaPrimeiroEUltimo(array) {
// implemente sua lógica aqui

}

// EXERCÍCIO 12
function checaIgualdadeDesconsiderandoCase(string1, string2) {
// implemente sua lógica aqui

}

// EXERCÍCIO 13
function checaRenovacaoRG() {
// implemente sua lógica aqui

}

// EXERCÍCIO 14
function checaAnoBissexto(ano) {
// implemente sua lógica aqui

}

// EXERCÍCIO 15
function checaValidadeInscricaoLabenu() {
// implemente sua lógica aqui

}
14 changes: 14 additions & 0 deletions modulo1/projeto-lista-js/lista-exercicios-intro-js/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="./tests.js" defer></script>
<script src="./exercicios.js" defer></script>
<title>Document</title>
</head>
<body>
<div id="root"></div>
</body>
</html>
35 changes: 35 additions & 0 deletions modulo1/projeto-lista-js/lista-exercicios-intro-js/tests.js

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions modulo3/apis-labenusers/apis-labenusers/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
70 changes: 70 additions & 0 deletions modulo3/apis-labenusers/apis-labenusers/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.

The page will reload when you make changes.\
You may also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can't go back!**

If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `npm run build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
Loading