Commit 6a4cba95 authored by Ari Trachtenberg's avatar Ari Trachtenberg
Browse files

public version

parent 2efe0aa0
Loading
Loading
Loading
Loading
+146 −59

File changed.

Preview size limit exceeded, changes collapsed.

README.txt

0 → 100644
+51 −0
Original line number Diff line number Diff line
# Button Blitz Project

## Intended IDE
The intended Integrated Development Environment (IDE) for this project is **Visual Studio Code (VS Code)**.

## Setup Instructions
1. **Install VS Code**:
   - Download and install Visual Studio Code from [https://code.visualstudio.com/](https://code.visualstudio.com/).

2. **Install Extensions**:
   - To enhance the development experience, install the following VS Code extensions:
     - **Live Server** (for real-time preview of the HTML file).
     - **Prettier - Code Formatter** (for consistent code formatting).
     - **ESLint** (to ensure JavaScript code quality).

3. **Open the Project in VS Code**:
   - Clone the repository:
     ```
     git clone https://agile.bu.edu/gitlab/ec327/projects/group10project.git
     ```
   - Open the folder in VS Code:
     ```
     File > Open Folder > Select the project folder.
     ```

4. **Run the Application**:
   - Open `index.html` in the editor.
   - Right-click anywhere in the file and select **"Open with Live Server"** (requires the Live Server extension).

5. **Project Structure**:
   - **index.html**: The main HTML file for the app.
   - **styles.css**: The CSS file linked to `index.html`.
   - **app.js**: The JavaScript file linked to `index.html`.

6. **Contributing**:
   - Make sure all changes are properly committed using Git:
     ```
     git add .
     git commit -m "Your commit message"
     git push
     ```
   - Create a merge request on GitLab for code review if necessary.

7. **Code Formatting**:
   - Use Prettier to format your code before committing:
     ```
     Ctrl+Shift+P (or Cmd+Shift+P on macOS) > Format Document
     ```

## Notes
- Ensure you are added as a contributor to the GitLab repository.
 No newline at end of file

amIPositive.js

0 → 100644
+31 −0
Original line number Diff line number Diff line
/**
 * @param num A num
 * @return true iff num is greater than 0
 */
function amIPositive(num) {
    return num > 0;
}

module.exports = amIPositive;

function testAmIPositive() {
    const amIPositive = require('./amIPositive');

    test('should return true for all real positive numbers', () => {
        expect(amIPositive(1)).toBe(true);
        expect(amIPositive(10.59)).toBe(true);
        expect(amIPositive(200)).toBe(true);
    });

    test('should return false for the number zero', () => {
        expect(amIPositive(0)).toBe(false);
    });

    test('should return false for all real negative numbers', () => {
        expect(amIPositive(-1)).toBe(false);
        expect(amIPositive(-0.314)).toBe(false);
        expect(amIPositive(-1000)).toBe(false);
    });
}

testAmIPositive();
 No newline at end of file

app.js

0 → 100644
+637 −0

File added.

Preview size limit exceeded, changes collapsed.

audio/popy.mp3

0 → 100644
+123 KiB

File added.

No diff preview for this file type.

Loading