Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback #1

Open
wants to merge 49 commits into
base: feedback
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
4fe3953
Setting up GitHub Classroom Feedback
github-classroom[bot] May 30, 2023
5bc9fb6
Add assignment deadline url
github-classroom[bot] May 30, 2023
17ac24f
initial commit
mcmmiguel May 30, 2023
e260dc0
implementado talbero y reglas
RassielMex May 31, 2023
90b567d
tablero y reglas implentado
RassielMex May 31, 2023
7ecd8bc
Celula y Tablero refactor
RassielMex May 31, 2023
5d6a056
Agregar archivo ESLint
montsegv-2 Jun 1, 2023
d2c5e4d
Tablero y comentarios
IvanCa27 Jun 1, 2023
629a54c
Co-authored-by: Miguel Cobian Meraz <[email protected]>
IvanCa27 Jun 1, 2023
9e0b36d
Commit de Prueba
IvanCa27 Jun 1, 2023
d865230
Prueba Unitaria para RandomBool.js
mcmmiguel Jun 2, 2023
4e8e027
Co-authored-by: Montserrat Aguilar <[email protected]>
IvanCa27 Jun 2, 2023
abf1580
Agregar test para el archivo tablero.js
montsegv-2 Jun 2, 2023
f98c175
TEst Tablero : Filas y columnas gen 1
RassielMex Jun 2, 2023
04b6e4d
Co-authored-by: Montserrat Aguilar <[email protected]>
RassielMex Jun 2, 2023
05c915e
randombool test
RassielMex Jun 2, 2023
991d354
randombool test
RassielMex Jun 2, 2023
f298c69
Create main.yml
RassielMex Jun 2, 2023
8cdf597
codecov.yml
RassielMex Jun 3, 2023
6897325
Issues de Codecov
mcmmiguel Jun 3, 2023
ff57097
Update blank.yml
RassielMex Jun 3, 2023
1466b8f
env yml
RassielMex Jun 3, 2023
c6ffe63
Update blank.yml
RassielMex Jun 3, 2023
e5bdbaa
Update blank.yml
RassielMex Jun 3, 2023
0b1185c
Update blank.yml
RassielMex Jun 3, 2023
b52a29a
Delete main.yml
RassielMex Jun 3, 2023
efbe3ca
Update blank.yml
RassielMex Jun 3, 2023
9a5a87d
Issues de Codacy
mcmmiguel Jun 3, 2023
e503d06
Update blank.yml
RassielMex Jun 3, 2023
54d841a
Merge branch 'changes' of https://github.com/BrightCoders-Institute/r…
mcmmiguel Jun 3, 2023
64abcc5
Create blank2.yml
IvanCa27 Jun 3, 2023
ef3b73b
Create prueba.yml
IvanCa27 Jun 3, 2023
db5d394
Create changes.yml
IvanCa27 Jun 3, 2023
361d1f4
Update changes.yml
IvanCa27 Jun 3, 2023
de62b54
Co-authored-by: Montserrat Aguilar <[email protected]>
mcmmiguel Jun 3, 2023
808b214
Update blank.yml
RassielMex Jun 3, 2023
c3ca5a3
Commit de prueba para CodeCov
mcmmiguel Jun 3, 2023
40317c8
Update blank.yml
RassielMex Jun 3, 2023
2fc7bd6
testin codecov
RassielMex Jun 3, 2023
eeb8a73
Badges
IvanCa27 Jun 3, 2023
ae8b7ff
Badges
IvanCa27 Jun 3, 2023
845688b
Badges
IvanCa27 Jun 3, 2023
44cd95b
readme
IvanCa27 Jun 3, 2023
830eb43
readme
IvanCa27 Jun 3, 2023
8d3e34c
readme
IvanCa27 Jun 3, 2023
477e571
Merge branch 'changes' of https://github.com/BrightCoders-Institute/r…
RassielMex Jun 4, 2023
104bef5
readme corrección
IvanCa27 Jun 4, 2023
0b72429
borramos prueba.yml
IvanCa27 Jun 5, 2023
cdb61c4
CodeCov Badge
IvanCa27 Jun 5, 2023
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
Binary file added .DS_Store
Binary file not shown.
23 changes: 23 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"env": {
"commonjs": true,
"es2021": true,
"node": true,
"jest/globals": true
},
"extends": "eslint:recommended",
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"semi": [
"error",
"always"
],
"quotes": [
"error",
"double"
]
}
}
43 changes: 43 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This is a basic workflow to help you get started with Actions

name: CodeCov

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches:
- '*'
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}


41 changes: 41 additions & 0 deletions .github/workflows/blank2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
40 changes: 40 additions & 0 deletions .github/workflows/changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This is a basic workflow to help you get started with Actions

name: Changes

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "origin/changes" ]
pull_request:
branches: [ "origin/changes" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
140 changes: 140 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@

### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

### Node Patch ###
# Serverless Webpack directories
.webpack/

# Optional stylelint cache

# SvelteKit build / generate output
.svelte-kit
88 changes: 76 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,82 @@
## El Juego de la Vida

![BrightCoders Logo](img/logo.png)

# El Juego de la vida
## Table of contents

- [El Juego de la Vida](#el-juego-de-la-vida)
- [Table of contents](#table-of-contents)
- [Description](#description)
- [How to install and run the project](#how-to-install-and-run-the-project)
- [Instalar dependencias:](#instalar-dependencias)
- [Ejecutar programa (2 formas de hacerlo):](#ejecutar-programa-2-formas-de-hacerlo)
- [Ejecutar pruebas:](#ejecutar-pruebas)
- [How to Use the Project](#how-to-use-the-project)
- [Credits](#credits)
- [Badges](#badges)

## Description

The Game of Life is not your typical computer game. It is a 'cellular automaton', and was invented by Cambridge mathematician John Conway.

This game became widely known when it was mentioned in an article published by Scientific American in 1970. It consists of a collection of cells which, based on a few mathematical rules, can live, die or multiply. Depending on the initial conditions, the cells form various patterns throughout the course of the game.

This Coding Challenge is about calculating the next generation of Conway’s game of life, given any starting position.

You start with a two dimensional grid of cells, where each cell is either alive or dead. In this version of the problem, the grid is finite, and no life can exist off the edges. When calculating the next generation of the grid, follow these rules:

1. Any live cell with fewer than two live neighbours dies, as if caused by underpopulation.
2. Any live cell with more than three live neighbours dies, as if by overcrowding.
3. Any live cell with two or three live neighbours lives on to the next generation.
4. Any dead cell with exactly three live neighbours becomes a live cell.

You should write a program that can accept an arbitrary grid of cells, and will output a similar grid showing the next generation.

## How to install and run the project

### Instalar dependencias:

```
npm install
```

```
npm install --save-dev nodemon
```

```
npm install --save-dev jest
```

### Ejecutar programa (2 formas de hacerlo):

```
npm run start
```

```
node .
```

### Ejecutar pruebas:

```
npm run test
```

## How to Use the Project

Lo que se hace es correr el main.js y desde ahí escribir por consola el valor de las filas y columnas que corresponderan al tamaño del tablero, luego se mostrará una Generación 1 aleatoria de la que derivará la Generación 2.

## Credits

> [Ver instrucciones antes de iniciar](./instructions.md)
- [Co-authored-by: Iván Caetano]([email protected])
- [Co-authored-by: Miguel Cobian Meraz]([email protected])
- [Co-authored-by: Montserrat Aguilar]([email protected])
- [Co-authored-by: Rassiel Mex]([email protected])

This README would normally document whatever steps are necessary to get the application up and running.
## Badges

Things you may want to cover:
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/c70327e18caf4347b48931aad1368dec)](https://app.codacy.com/gh/BrightCoders-Institute/reto-el-juego-de-la-vida-team-2/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)

- Title or Project Name
- Table of contents
- Description. A brief description of what the project is about
- How to Install and Run the Project.
- How to Use the Project.
- Credits
- Badges

[![CodeCov](https://github.com/BrightCoders-Institute/reto-el-juego-de-la-vida-team-2/actions/workflows/blank.yml/badge.svg?branch=main)](https://github.com/BrightCoders-Institute/reto-el-juego-de-la-vida-team-2/actions/workflows/blank.yml)
Loading